Home
last modified time | relevance | path

Searched refs:addStmt (Results 1 – 17 of 17) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DBuilderFactoryTest.php273 ->addStmt($factory->use('Foo\Bar\SomeOtherClass'))
274 ->addStmt($factory->use('Foo\Bar')->as('A'))
275 ->addStmt($factory->useFunction('strlen'))
276 ->addStmt($factory->useConst('PHP_VERSION'))
277 ->addStmt($factory
284 ->addStmt($factory->useTrait('FirstTrait'))
292 ->addStmt($factory->method('firstMethod')
296 ->addStmt($factory->method('someMethod')
306 ->addStmt($factory->method('anotherMethod')
315 ->addStmt($factory->property('anotherProperty')
[all …]
/PHP-Parser/test/PhpParser/Builder/
H A DInterfaceTest.php47 $contract = $this->createInterfaceBuilder()->addStmt($method)->getNode();
55 $contract = $this->createInterfaceBuilder()->addStmt($const)->getNode();
65 ->addStmt($method)
66 ->addStmt($const)
103 $this->createInterfaceBuilder()->addStmt(new Node\PropertyItem('invalid'));
112 ->addStmt($method)
113 ->addStmt($const)
H A DTraitTest.php37 ->addStmt($method1)
39 ->addStmt($prop)
40 ->addStmt($use)
41 ->addStmt($const)
56 ->addStmt(new Stmt\Echo_([]))
H A DNamespaceTest.php26 ->addStmt($stmt1)
36 ->addStmt($stmt3)
H A DEnumTest.php62 ->addStmt($method)
63 ->addStmt($enumCase)
134 ->addStmt(new Node\PropertyItem('property'))
H A DClassTest.php97 ->addStmt($method)
98 ->addStmt($property)
169 ->addStmt(new Stmt\Echo_([]))
H A DMethodTest.php105 ->addStmt($stmt1)
161 ->addStmt(new Print_(new String_('test')))
169 ->addStmt(new Print_(new String_('test')))
H A DFunctionTest.php62 ->addStmt($stmt1)
133 ->addStmt(new Node\Name('Test'));
/PHP-Parser/lib/PhpParser/Builder/
H A DDeclaration.php19 abstract public function addStmt($stmt); function in PhpParser\\Builder\\Declaration
30 $this->addStmt($stmt);
H A DNamespace_.php31 public function addStmt($stmt) { function in PhpParser\\Builder\\Namespace_
H A DFunction_.php34 public function addStmt($stmt) { function in PhpParser\\Builder\\Function_
H A DInterface_.php53 public function addStmt($stmt) { function in PhpParser\\Builder\\Interface_
H A DTrait_.php39 public function addStmt($stmt) { function in PhpParser\\Builder\\Trait_
H A DEnum_.php72 public function addStmt($stmt) { function in PhpParser\\Builder\\Enum_
H A DMethod.php109 public function addStmt($stmt) { function in PhpParser\\Builder\\Method
H A DClass_.php106 public function addStmt($stmt) { function in PhpParser\\Builder\\Class_
/PHP-Parser/doc/component/
H A DAST_builders.markdown32 ->addStmt($factory->use('Some\Other\Thingy')->as('SomeClass'))
33 ->addStmt($factory->useFunction('strlen'))
34 ->addStmt($factory->useConst('PHP_VERSION'))
35 ->addStmt($factory->class('SomeOtherClass')
40 ->addStmt($factory->useTrait('FirstTrait'))
42 ->addStmt($factory->useTrait('SecondTrait', 'ThirdTrait')
48 ->addStmt($factory->method('someMethod')
60 ->addStmt($factory->method('anotherMethod')
64 ->addStmt(new Node\Expr\Print_(new Node\Expr\Variable('someParam')))
68 ->addStmt($factory->property('someProperty')->makeProtected())
[all …]

Completed in 26 milliseconds