PhpParser\Builder\Method::addStmt PHP Метод

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

Adds a statement.
public addStmt ( PhpParser\Node | PhpParser\Builder $stmt )
$stmt PhpParser\Node | PhpParser\Builder The statement to add
    public function addStmt($stmt) {
        if (null === $this->stmts) {
            throw new \LogicException('Cannot add statements to an abstract method');
        }

        $this->stmts[] = $this->normalizeNode($stmt);

        return $this;
    }