1 | <?php |
||
11 | trait Implementation |
||
12 | { |
||
13 | /** |
||
14 | * Property key which should trigger the processor |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $property; |
||
18 | |||
19 | /** |
||
20 | * Apply processing to a single node |
||
21 | * |
||
22 | * @param Node $node |
||
23 | * @return void |
||
24 | */ |
||
25 | abstract protected function applyToNode(Node $node); |
||
26 | |||
27 | /** |
||
28 | * Class constructor |
||
29 | * |
||
30 | * @param DataEnricher $invoker |
||
31 | * @param string $property Property key with the processing instruction |
||
32 | */ |
||
33 | public function __construct(DataEnricher $invoker, $property) |
||
37 | |||
38 | /** |
||
39 | * Get the property key that holds the processing instruction |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getProperty() |
||
47 | |||
48 | /** |
||
49 | * Apply reference processing |
||
50 | * |
||
51 | * @param Node[] $nodes |
||
52 | */ |
||
53 | public function applyTo(array $nodes) |
||
61 | } |
||
62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.