Home
last modified time | relevance | path

Searched refs:Modifiers (Results 1 – 25 of 37) sorted by relevance

12

/PHP-Parser/test/PhpParser/
H A DModifiersTest.php10 $this->assertSame('public', Modifiers::toString(Modifiers::PUBLIC));
16 Modifiers::toString(Modifiers::PUBLIC | Modifiers::PROTECTED);
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DProperty.php5 use PhpParser\Modifiers; alias
51 return ($this->flags & Modifiers::PUBLIC) !== 0
52 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0;
59 return (bool) ($this->flags & Modifiers::PROTECTED);
66 return (bool) ($this->flags & Modifiers::PRIVATE);
73 return (bool) ($this->flags & Modifiers::STATIC);
80 return (bool) ($this->flags & Modifiers::READONLY);
87 return (bool) ($this->flags & Modifiers::PUBLIC_SET);
94 return (bool) ($this->flags & Modifiers::PROTECTED_SET);
101 return (bool) ($this->flags & Modifiers::PRIVATE_SET);
H A DClassConst.php5 use PhpParser\Modifiers; alias
49 return ($this->flags & Modifiers::PUBLIC) !== 0
50 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0;
57 return (bool) ($this->flags & Modifiers::PROTECTED);
64 return (bool) ($this->flags & Modifiers::PRIVATE);
71 return (bool) ($this->flags & Modifiers::FINAL);
H A DClassMethod.php5 use PhpParser\Modifiers; alias
105 return ($this->flags & Modifiers::PUBLIC) !== 0
106 || ($this->flags & Modifiers::VISIBILITY_MASK) === 0;
113 return (bool) ($this->flags & Modifiers::PROTECTED);
120 return (bool) ($this->flags & Modifiers::PRIVATE);
127 return (bool) ($this->flags & Modifiers::ABSTRACT);
134 return (bool) ($this->flags & Modifiers::FINAL);
141 return (bool) ($this->flags & Modifiers::STATIC);
H A DClass_.php5 use PhpParser\Modifiers; alias
70 return (bool) ($this->flags & Modifiers::ABSTRACT);
77 return (bool) ($this->flags & Modifiers::FINAL);
81 return (bool) ($this->flags & Modifiers::READONLY);
/PHP-Parser/lib/PhpParser/Builder/
H A DProperty.php7 use PhpParser\Modifiers; alias
44 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
55 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
66 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
77 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC);
88 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY);
99 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT);
110 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
121 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET);
208 if ($this->flags & Modifiers::ABSTRACT && !$this->hooks) {
[all …]
H A DMethod.php7 use PhpParser\Modifiers; alias
37 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
48 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
59 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
70 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::STATIC);
85 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::ABSTRACT);
97 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
H A DParam.php7 use PhpParser\Modifiers; alias
87 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
98 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
109 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
120 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::READONLY);
131 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE_SET);
142 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED_SET);
H A DClassConst.php9 use PhpParser\Modifiers; alias
57 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PUBLIC);
68 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PROTECTED);
79 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::PRIVATE);
90 $this->flags = BuilderHelpers::addModifier($this->flags, Modifiers::FINAL);
H A DClass_.php7 use PhpParser\Modifiers; alias
72 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::ABSTRACT);
83 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::FINAL);
94 $this->flags = BuilderHelpers::addClassModifier($this->flags, Modifiers::READONLY);
H A DTraitUseAdaptation.php7 use PhpParser\Modifiers; alias
63 $this->setModifier(Modifiers::PUBLIC);
73 $this->setModifier(Modifiers::PROTECTED);
83 $this->setModifier(Modifiers::PRIVATE);
/PHP-Parser/lib/PhpParser/Node/
H A DParam.php5 use PhpParser\Modifiers; alias
75 return (bool) ($this->flags & Modifiers::PUBLIC);
79 return (bool) ($this->flags & Modifiers::PROTECTED);
83 return (bool) ($this->flags & Modifiers::PRIVATE);
87 return (bool) ($this->flags & Modifiers::READONLY);
94 return (bool) ($this->flags & Modifiers::PUBLIC_SET);
101 return (bool) ($this->flags & Modifiers::PROTECTED_SET);
108 return (bool) ($this->flags & Modifiers::PRIVATE_SET);
/PHP-Parser/test/PhpParser/Node/Stmt/
H A DPropertyTest.php5 use PhpParser\Modifiers; alias
13 constant(Modifiers::class . '::' . strtoupper($modifier)),
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.php5 use PhpParser\Modifiers; alias
11 $class = new Class_('Foo', ['type' => Modifiers::ABSTRACT]);
19 $class = new Class_('Foo', ['type' => Modifiers::FINAL]);
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')]…
H A DClassConstTest.php5 use PhpParser\Modifiers; alias
14 constant(Modifiers::class . '::' . strtoupper($modifier))
H A DClassMethodTest.php5 use PhpParser\Modifiers; alias
16 'type' => constant(Modifiers::class . '::' . strtoupper($modifier))
54 'type' => constant(Modifiers::class . '::' . strtoupper($modifier))
/PHP-Parser/test/PhpParser/Builder/
H A DPropertyTest.php7 use PhpParser\Modifiers; alias
34 Modifiers::PRIVATE | Modifiers::STATIC,
47 Modifiers::PROTECTED,
60 Modifiers::PUBLIC,
73 Modifiers::READONLY,
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')]),
113 Modifiers::PUBLIC,
149 Modifiers::PUBLIC,
[all …]
H A DMethodTest.php6 use PhpParser\Modifiers; alias
34 'flags' => Modifiers::PUBLIC | Modifiers::ABSTRACT | Modifiers::STATIC,
48 'flags' => Modifiers::PROTECTED | Modifiers::FINAL
60 'type' => Modifiers::PRIVATE
H A DTraitUseAdaptationTest.php5 use PhpParser\Modifiers; alias
24 new Stmt\TraitUseAdaptation\Alias(null, 'foo', Modifiers::PUBLIC, null),
29 new Stmt\TraitUseAdaptation\Alias(null, 'foo', Modifiers::PROTECTED, null),
34 new Stmt\TraitUseAdaptation\Alias(null, 'foo', Modifiers::PRIVATE, null),
H A DClassConstTest.php6 use PhpParser\Modifiers; alias
34 Modifiers::PRIVATE
49 Modifiers::PROTECTED
64 Modifiers::PUBLIC
79 Modifiers::FINAL
96 Modifiers::PUBLIC,
H A DTraitTest.php6 use PhpParser\Modifiers; alias
30 $prop = new Stmt\Property(Modifiers::PUBLIC, [
82 new Property(Modifiers::PUBLIC, [new PropertyItem('foo')]),
83 new Property(Modifiers::PUBLIC, [new PropertyItem('bar')]),
H A DClassTest.php6 use PhpParser\Modifiers; alias
51 'flags' => Modifiers::ABSTRACT
65 'flags' => Modifiers::FINAL
79 'flags' => Modifiers::READONLY
88 Modifiers::PUBLIC,
/PHP-Parser/test/PhpParser/Node/
H A DParamTest.php5 use PhpParser\Modifiers; alias
27 $node->flags = constant(Modifiers::class . '::' . strtoupper($modifier));
43 $node->flags = Modifiers::PRIVATE_SET;
45 $node->flags = Modifiers::PROTECTED_SET;
47 $node->flags = Modifiers::PUBLIC_SET;
/PHP-Parser/lib/PhpParser/
H A DModifiers.php9 final class Modifiers { class
70 if (($a & Modifiers::VISIBILITY_MASK && $b & Modifiers::VISIBILITY_MASK) ||
71 ($a & Modifiers::VISIBILITY_SET_MASK && $b & Modifiers::VISIBILITY_SET_MASK)
H A DNodeDumper.php167 if ($flags & Modifiers::PUBLIC) {
170 if ($flags & Modifiers::PROTECTED) {
173 if ($flags & Modifiers::PRIVATE) {
176 if ($flags & Modifiers::ABSTRACT) {
179 if ($flags & Modifiers::STATIC) {
182 if ($flags & Modifiers::FINAL) {
185 if ($flags & Modifiers::READONLY) {
188 if ($flags & Modifiers::PUBLIC_SET) {
191 if ($flags & Modifiers::PROTECTED_SET) {
194 if ($flags & Modifiers::PRIVATE_SET) {

Completed in 26 milliseconds

12