Commando\Option::setDescription PHP Method

setDescription() public method

public setDescription ( string $description ) : Option
$description string
return Option
    public function setDescription($description)
    {
        $this->description = $description;
        return $this;
    }

Usage Example

Esempio n. 1
0
 public function testGetDescription()
 {
     $description = "I'm cool";
     $option = new Option("f");
     $option->setDescription($description);
     $this->assertEquals($description, $option->getDescription());
 }