Home
last modified time | relevance | path

Searched refs:ClassMethod (Results 1 – 25 of 28) sorted by relevance

12

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DClassTest.php34 new ClassMethod('fooBar'),
44 new ClassMethod('foo'),
45 new ClassMethod('bar'),
46 new ClassMethod('fooBar'),
71 new ClassMethod('fooBar'),
90 new ClassMethod('fooBar'),
109 new ClassMethod('fooBar'),
123 $methodConstruct = new ClassMethod('__CONSTRUCT');
124 $methodTest = new ClassMethod('test');
H A DClassMethodTest.php15 $node = new ClassMethod('foo', [
23 $node = new ClassMethod('foo', ['type' => 0]);
53 $node = new ClassMethod('foo', [
74 $node = new ClassMethod($name);
102 $method = new ClassMethod('test', [
114 $method = new ClassMethod('test', [
H A DInterfaceTest.php11 new ClassMethod('foo'),
12 new ClassMethod('bar'),
36 new ClassMethod('fooBar'),
/PHP-Parser/test/PhpParser/Builder/
H A DTraitTest.php16 use PhpParser\Node\Stmt\ClassMethod; alias
27 $method1 = new Stmt\ClassMethod('test1');
28 $method2 = new Stmt\ClassMethod('test2');
29 $method3 = new Stmt\ClassMethod('test3');
62 new ClassMethod('foo'),
63 new ClassMethod('bar'),
64 new ClassMethod('fooBar'),
91 new ClassMethod('fooBar'),
H A DMethodTest.php33 new Stmt\ClassMethod('test', [
47 new Stmt\ClassMethod('test', [
59 new Stmt\ClassMethod('test', [
73 new Stmt\ClassMethod('test', [
92 new Stmt\ClassMethod('test', [
111 new Stmt\ClassMethod('test', [
126 $this->assertEquals(new Stmt\ClassMethod('test', [], [
142 $this->assertEquals(new Stmt\ClassMethod('attributeGroup', [
151 $this->assertEquals(new Stmt\ClassMethod('test', [
H A DInterfaceTest.php46 $method = new Stmt\ClassMethod('doSomething');
63 $method = new Stmt\ClassMethod('doSomething');
71 $this->assertInstanceOf(Stmt\ClassMethod::class, $contract->stmts[1]);
110 $method = new Stmt\ClassMethod('doSomething');
H A DEnumTest.php52 $method = new Stmt\ClassMethod('testMethod');
H A DClassTest.php86 $method = new Stmt\ClassMethod('testMethod');
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DClassLike.php81 * @return ClassMethod[]
86 if ($stmt instanceof ClassMethod) {
98 * @return ClassMethod|null Method node or null if the method does not exist
100 public function getMethod(string $name): ?ClassMethod {
103 if ($stmt instanceof ClassMethod && $lowerName === $stmt->name->toLowerString()) {
H A DClassMethod.php9 class ClassMethod extends Node\Stmt implements FunctionLike { class
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DParentConnectingVisitorTest.php5 use PhpParser\Node\Stmt\ClassMethod; alias
22 $node = (new NodeFinder())->findFirstInstanceof($ast, ClassMethod::class);
/PHP-Parser/test/code/formatPreservation/
H A DlistRemoval.test189 $stmts[0]->stmts[2] = new Node\Stmt\ClassMethod('getBar');
190 $stmts[0]->stmts[3] = new Node\Stmt\ClassMethod('getBaz');
/PHP-Parser/lib/PhpParser/Builder/
H A DInterface_.php58 } elseif ($stmt instanceof Stmt\ClassMethod) {
H A DTrait_.php44 } elseif ($stmt instanceof Stmt\ClassMethod) {
H A DEnum_.php77 } elseif ($stmt instanceof Stmt\ClassMethod) {
H A DMethod.php138 return new Stmt\ClassMethod($this->name, [
H A DClass_.php111 } elseif ($stmt instanceof Stmt\ClassMethod) {
/PHP-Parser/
H A DUPGRADE-4.0.md30 * `Stmt\ClassMethod::$name`
31 * `Stmt\ClassMethod::$returnType` (for simple types)
65 * Removed `type` subnode on `Class_`, `ClassMethod` and `Property` nodes. Use `flags` instead.
H A DUPGRADE-3.0.md26 * The `type` subnode on `Class`, `ClassMethod` and `Property` has been renamed to `flags`. The
H A DUPGRADE-5.0.md296 Modifier flags (as used by the `$flags` subnode of `Class_`, `ClassMethod`, `Property`, etc.) are n…
315 * The `'returnType'` key of `$subNodes` argument of `Node\Stmt\ClassMethod`.
H A DCHANGELOG.md436 `Stmt\ClassMethod`, `Stmt\ClassConst`, `Stmt\Property`, `Expr\Closure`, `Expr\ArrowFunction` and
775 * Added `ClassMethod::isMagic()` method.
813 * Removed `type` subnode on `Class`, `ClassMethod` and `Property` nodes. Use `flags` instead.
1079 * The `type` subnode on `Class`, `ClassMethod` and `Property` has been renamed to `flags`. The
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php1528 Stmt\ClassMethod::class . '->params' => ', ',
1562 Stmt\ClassMethod::class . '->stmts' => "\n",
1582 Stmt\ClassMethod::class . '->attrGroups' => "\n",
1625 Stmt\ClassMethod::class . '->params' => ['(', '', ''],
1631 Stmt\ClassMethod::class . '->attrGroups' => [null, '', "\n"],
1676 Stmt\ClassMethod::class . '->flags' => ['pModifiers', \T_FUNCTION],
H A DParserAbstract.php25 use PhpParser\Node\Stmt\ClassMethod; alias
1111 protected function checkClassMethod(ClassMethod $node, int $modifierPos): void {
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php102 } elseif ($node instanceof Stmt\ClassMethod
/PHP-Parser/grammar/
H A Dphp.y853 …{ $$ = Stmt\ClassMethod[$5, ['type' => $2, 'byRef' => $4, 'params' => $7, 'returnType' => $9, 'stm…

Completed in 43 milliseconds

12