Pop\Code\Generator\DocblockGenerator::setDesc PHP Метод

setDesc() публичный Метод

Set the docblock description
public setDesc ( string $desc = null ) : DocblockGenerator
$desc string
Результат DocblockGenerator
    public function setDesc($desc = null)
    {
        $this->desc = $desc;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Set the property description
  *
  * @param  string $desc
  * @return \Pop\Code\Generator\PropertyGenerator
  */
 public function setDesc($desc = null)
 {
     if (null !== $this->docblock) {
         $this->docblock->setDesc($desc);
     } else {
         $this->docblock = new DocblockGenerator($desc, $this->indent);
     }
     return $this;
 }