public function setDescription($description)
    {
        if (null !== $description) {
            Assert::string($description, 'The command description must be a string or null. Got: %s');
            Assert::notEmpty($description, 'The command description must not be empty.');
        }

        $this->description = $description;

        return $this;
    }
public function setDescription($description)
    {
        if (null !== $description) {
            Assert::string($description, 'The command description must be a string or null. Got: %s');
            Assert::notEmpty($description, 'The command description must not be empty.');
        }

        $this->description = $description;

        return $this;
    }
public function setDescription ( $ description ) { if ( null !== $ description ) { Assert :: string ( $ description , 'The command description must be a string or null. Got: %s' ) ; Assert :: notEmpty ( $ description , 'The command description must not be empty.' ) ; } $ this -> description = $ description ; return $ this ; }
Sets the description of the command.

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.

@param string $description The description.

@return static The current instance.

@see getDescription()
Sets the description of the command .