setDescription() public method

The description is a short one-liner that describes the command in the command listing. The description should be written in imperative form rather than in descriptive form. So: > List the contents of a directory. should be preferred over > Lists the contents of a directory.
See also: getDescription()
public setDescription ( string $description ) : static
$description string The description.
return static The current instance.
Example #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testSetDescriptionFailsIfNotString()
 {
     $this->config->setDescription(1234);
 }