src/Padawan/Domain/Project/Collection/MethodsCollection.php 1 location
|
@@ 29-35 (lines=7) @@
|
| 26 |
|
if ($spec === null) { |
| 27 |
|
$spec = new Specification('private', 2, true); |
| 28 |
|
} |
| 29 |
|
if (array_key_exists($name, $this->methods)) { |
| 30 |
|
$method = $this->methods[$name]; |
| 31 |
|
if ($spec->satisfy($method)) { |
| 32 |
|
return $method; |
| 33 |
|
} |
| 34 |
|
return null; |
| 35 |
|
} |
| 36 |
|
$parentSpec = new Specification( |
| 37 |
|
$spec->getParentMode(), |
| 38 |
|
$spec->isStatic(), |
src/Padawan/Domain/Project/Collection/PropertiesCollection.php 1 location
|
@@ 52-58 (lines=7) @@
|
| 49 |
|
if ($spec === null) { |
| 50 |
|
$spec = new Specification('private', 2, false); |
| 51 |
|
} |
| 52 |
|
if (array_key_exists($propName, $this->map)) { |
| 53 |
|
$prop = $this->map[$propName]; |
| 54 |
|
if ($spec->satisfy($prop)) { |
| 55 |
|
return $prop; |
| 56 |
|
} |
| 57 |
|
return null; |
| 58 |
|
} |
| 59 |
|
$parent = $this->class->getParent(); |
| 60 |
|
if ($parent instanceof ClassData) { |
| 61 |
|
return $parent->properties->get( |