Adds a statement.
Node|PhpParser\Builder $stmt The statement to add:
$this The builder instance (for fluid interface)
Overrides Declaration::addStmt
public function addStmt($stmt) { if (null === $this->stmts) { throw new \LogicException('Cannot add statements to an abstract method'); } $this->stmts[] = BuilderHelpers::normalizeStmt($stmt); return $this; }