CloneableInstantiable
ExtendsPhpParser\Builder\Declaration
ImplementsPhpParser\Builder
Methods
public __construct(string $name)
 
Creates a class builder.

    public addStmt( $stmt)
     
    Adds a statement.

    • return $this The builder instance (for fluid interface)
    public PhpParser\Builder\Declaration::addStmts(array $stmts)
     
    Adds multiple statements.

    • return $this The builder instance (for fluid interface)
    public extend( $class)
     
    Extends a class.

    • return $this The builder instance (for fluid interface)
    public getNode() : PhpParser\Node
     
    Returns the built class node.

    • return Stmt\Class_ The built class node
    public implement( $interfaces)
     
    Implements one or more interfaces.

    • return $this The builder instance (for fluid interface)
    public makeAbstract()
     
    Makes the class abstract.

    • return $this The builder instance (for fluid interface)
    public makeFinal()
     
    Makes the class final.

    • return $this The builder instance (for fluid interface)
    public PhpParser\Builder\Declaration::setDocComment( $docComment)
     
    Sets doc comment for the declaration.

    • return $this The builder instance (for fluid interface)
    Properties
    protected PhpParser\Builder\Declaration::$attributes
    protected $constants
    protected $extends
    protected $flags
    protected $implements
    protected $methods
    protected $name
    protected $properties
    protected $uses
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only