| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | abstract class AbstractTarget implements \Stringable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param non-empty-string|null $scope |
||
|
|
|||
| 11 | */ |
||
| 12 | public function __construct( |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Generates a unique string for this target to be used as cache key. |
||
| 19 | * @return non-empty-string |
||
| 20 | */ |
||
| 21 | public function __toString(): string |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Filter given classes and return only those that should be listened. |
||
| 28 | * @param \ReflectionClass[] $classes |
||
| 29 | * @return \Iterator<class-string> |
||
| 30 | */ |
||
| 31 | abstract public function filter(array $classes): \Iterator; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get scope for class locator. If scope is not set, all classes will be listened. |
||
| 35 | * @return non-empty-string|null |
||
| 36 | */ |
||
| 37 | public function getScope(): ?string |
||
| 42 |