Searched refs:addStmt (Results 1 – 17 of 17) sorted by relevance
273 ->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($factory284 ->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 …]
47 $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)
37 ->addStmt($method1)39 ->addStmt($prop)40 ->addStmt($use)41 ->addStmt($const)56 ->addStmt(new Stmt\Echo_([]))
26 ->addStmt($stmt1)36 ->addStmt($stmt3)
62 ->addStmt($method)63 ->addStmt($enumCase)134 ->addStmt(new Node\PropertyItem('property'))
97 ->addStmt($method)98 ->addStmt($property)169 ->addStmt(new Stmt\Echo_([]))
105 ->addStmt($stmt1)161 ->addStmt(new Print_(new String_('test')))169 ->addStmt(new Print_(new String_('test')))
62 ->addStmt($stmt1)133 ->addStmt(new Node\Name('Test'));
19 abstract public function addStmt($stmt); function in PhpParser\\Builder\\Declaration30 $this->addStmt($stmt);
31 public function addStmt($stmt) { function in PhpParser\\Builder\\Namespace_
34 public function addStmt($stmt) { function in PhpParser\\Builder\\Function_
53 public function addStmt($stmt) { function in PhpParser\\Builder\\Interface_
39 public function addStmt($stmt) { function in PhpParser\\Builder\\Trait_
72 public function addStmt($stmt) { function in PhpParser\\Builder\\Enum_
109 public function addStmt($stmt) { function in PhpParser\\Builder\\Method
106 public function addStmt($stmt) { function in PhpParser\\Builder\\Class_
32 ->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 22 milliseconds