1 | <?php |
||
13 | class InterfaceSegregation extends ContextualVisitor |
||
14 | { |
||
15 | private |
||
16 | $objectTypes, |
||
17 | $types; |
||
18 | |||
19 | public function __construct(ObjectTypes $objectTypes) |
||
26 | |||
27 | public function before(array $nodes) |
||
31 | |||
32 | protected function enter(Node $node) |
||
45 | |||
46 | private function checkIfTypeIsAnInterface(Node $node, Name $type) |
||
74 | } |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.