ray-di /
Ray.Aop
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Ray\Aop; |
||
| 6 | |||
| 7 | abstract class AbstractMatcher |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var mixed[] |
||
| 11 | */ |
||
| 12 | protected $arguments = []; |
||
| 13 | |||
| 14 | public function __construct() |
||
| 15 | { |
||
| 16 | $this->arguments = func_get_args(); |
||
| 17 | } |
||
| 18 | 59 | ||
| 19 | /** |
||
| 20 | 59 | * Match class condition |
|
| 21 | 59 | * |
|
| 22 | * @param \ReflectionClass<object> $class |
||
|
0 ignored issues
–
show
|
|||
| 23 | * @param mixed[] $arguments |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | abstract public function matchesClass(\ReflectionClass $class, array $arguments); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Match method condition |
||
| 31 | * |
||
| 32 | * @param mixed[] $arguments |
||
| 33 | * |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | abstract public function matchesMethod(\ReflectionMethod $method, array $arguments); |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Return matching condition arguments |
||
| 40 | * |
||
| 41 | * @return mixed[] |
||
| 42 | 44 | */ |
|
| 43 | public function getArguments() |
||
| 44 | 44 | { |
|
| 45 | return $this->arguments; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.