Home
last modified time | relevance | path

Searched refs:Property (Results 1 – 25 of 31) sorted by relevance

12

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DPropertyTest.php12 $node = new Property(
21 $node = new Property(0, []);
34 $node = new Property(Modifiers::STATIC, []);
53 $node = new Property(Modifiers::PRIVATE_SET, []);
55 $node = new Property(Modifiers::PROTECTED_SET, []);
57 $node = new Property(Modifiers::PUBLIC_SET, []);
H A DClassTest.php54 new Property(0, []),
81 new Property(Modifiers::PUBLIC, [new PropertyItem('foo')]),
82 new Property(Modifiers::PUBLIC, [new PropertyItem('bar')]),
99 $fooProp = new Property(Modifiers::PUBLIC, [new PropertyItem('foo1')]),
100 $barProp = new Property(Modifiers::PUBLIC, [new PropertyItem('BAR1')]),
101 …$fooBarProp = new Property(Modifiers::PUBLIC, [new PropertyItem('foo2'), new PropertyItem('bar2')]…
129 new Property(0, []),
/PHP-Parser/test/PhpParser/Builder/
H A DPropertyTest.php22 return new Property($name);
33 new Stmt\Property(
46 new Stmt\Property(
59 new Stmt\Property(
72 new Stmt\Property(
83 new Stmt\Property(Modifiers::FINAL, [new PropertyItem('test')]),
90 new Stmt\Property(Modifiers::PRIVATE_SET, [new PropertyItem('test')]),
97 new Stmt\Property(Modifiers::PROTECTED_SET, [new PropertyItem('test')]),
112 $this->assertEquals(new Stmt\Property(
148 new Stmt\Property(
[all …]
H A DTraitTest.php17 use PhpParser\Node\Stmt\Property; alias
30 $prop = new Stmt\Property(Modifiers::PUBLIC, [
72 new Property(0, []),
82 new Property(Modifiers::PUBLIC, [new PropertyItem('foo')]),
83 new Property(Modifiers::PUBLIC, [new PropertyItem('bar')]),
H A DClassTest.php87 $property = new Stmt\Property(
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DClassLike.php46 * @return Property[]
51 if ($stmt instanceof Property) {
63 * @return Property|null Property node or null if the property does not exist
65 public function getProperty(string $name): ?Property {
67 if ($stmt instanceof Property) {
H A DProperty.php12 class Property extends Node\Stmt { class
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DProperty.php7 class Property extends MagicConst { class
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dproperty_promotion.test1 Property promotion
H A Dproperty_hooks.test1 Property hooks
/PHP-Parser/lib/PhpParser/Builder/
H A DProperty.php14 class Property implements PhpParser\Builder { class
212 return new Stmt\Property(
H A DTrait_.php42 if ($stmt instanceof Stmt\Property) {
H A DClass_.php109 if ($stmt instanceof Stmt\Property) {
/PHP-Parser/test/code/parser/stmt/class/
H A Dproperty_modifiers.test1 Property modifiers
H A Dproperty_hooks.test1 Property hooks
246 Property hook list cannot be empty from 3:18 to 3:18
247 Property hook list cannot be empty from 4:47 to 4:47
H A Dproperty_promotion.test1 Property promotion
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php139 public function property(string $name): Builder\Property {
140 return new Builder\Property($name);
H A DPrettyPrinterAbstract.php1543 Stmt\Property::class . '->props' => ', ',
1584 Stmt\Property::class . '->attrGroups' => "\n",
1596 Stmt\Property::class . '->hooks' => "\n",
1633 Stmt\Property::class . '->attrGroups' => [null, '', "\n"],
1678 Stmt\Property::class . '->flags' => ['pModifiers', \T_VARIABLE],
/PHP-Parser/test/code/formatPreservation/
H A Dproperty_hooks.test1 Property hooks
/PHP-Parser/doc/component/
H A DLexer.markdown91 function isDeclaredUsingVar(array $tokens, PhpParser\Node\Stmt\Property $prop) {
108 if ($node instanceof PhpParser\Node\Stmt\Property) {
/PHP-Parser/
H A DUPGRADE-4.0.md65 * Removed `type` subnode on `Class_`, `ClassMethod` and `Property` nodes. Use `flags` instead.
H A DCHANGELOG.md30 `Node\Scalar\MagicConst\Property` node.
32 `Node\Stmt\Property` and `Node\Param`, which contains an array of `Node\PropertyHook`.
33 * [8.4] Added support for asymmetric visibility modifiers. Property `flags` can now hold the
137 versions. Property types have been added where possible.
436 `Stmt\ClassMethod`, `Stmt\ClassConst`, `Stmt\Property`, `Expr\Closure`, `Expr\ArrowFunction` and
620 * [PHP 7.4] Add support for typed properties through a new `type` subnode of `Stmt\Property`.
621 Additionally `Builder\Property` now has a `setType()` method. (#567)
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/test/PhpParser/
H A DBuilderFactoryTest.php32 ['property', Builder\Property::class],
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php108 } elseif ($node instanceof Stmt\Property) {
/PHP-Parser/grammar/
H A Dphp.y839 { $$ = new Stmt\Property($2, $4, attributes(), $3, $1); }
842 { $$ = new Stmt\Property($2, $4, attributes(), $3, $1, $6);
1209 | T_PROPERTY_C { $$ = Scalar\MagicConst\Property[]; }

Completed in 32 milliseconds

12