| 1 | <?php |
||
| 18 | class NotPointcut implements Pointcut |
||
| 19 | { |
||
| 20 | use PointcutClassFilterTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var Pointcut |
||
| 24 | */ |
||
| 25 | protected $pointcut; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Kind of pointcut |
||
| 29 | * |
||
| 30 | * @var int |
||
| 31 | */ |
||
| 32 | protected $kind = 0; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Inverse pointcut matcher |
||
| 36 | * |
||
| 37 | * @param Pointcut $pointcut Pointcut expression |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(Pointcut $pointcut) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Performs matching of point of code |
||
| 47 | * |
||
| 48 | * @param mixed $point Specific part of code, can be any Reflection class |
||
| 49 | * @param null|mixed $context Related context, can be class or namespace |
||
| 50 | * @param null|string|object $instance Invocation instance or string for static calls |
||
| 51 | * @param null|array $arguments Dynamic arguments for method |
||
| 52 | * |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | public function matches($point, $context = null, $instance = null, array $arguments = null) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Returns the kind of point filter |
||
| 71 | * |
||
| 72 | * @return integer |
||
| 73 | */ |
||
| 74 | 1 | public function getKind() |
|
| 78 | } |
||
| 79 |