Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | interface Processor |
||
11 | { |
||
12 | /** |
||
13 | * Class constructor |
||
14 | * |
||
15 | * @param string $property Property key with the processing instruction |
||
16 | */ |
||
17 | public function __construct($property); |
||
|
|||
18 | |||
19 | /** |
||
20 | * Get the property key that holds the processing instruction |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | public function getProperty(); |
||
25 | |||
26 | /** |
||
27 | * Apply processing to a node |
||
28 | * |
||
29 | * @param Node $node |
||
30 | */ |
||
31 | public function applyToNode(Node $node); |
||
32 | } |
||
33 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.