Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class CommonList extends AbstractList |
||
6 | { |
||
7 | /** |
||
8 | * Setter accessor to property separator |
||
9 | * Because if a common list, the separator can be different for all case. |
||
10 | * |
||
11 | * @param string $separator The new separator to use |
||
12 | * |
||
13 | * @return $this |
||
14 | */ |
||
15 | public function setSeparator(string $separator): self |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Magic method __invoke, used when the user call object like a function |
||
23 | * @link http://php.net/manual/en/language.oop5.magic.php#object.invoke |
||
24 | * |
||
25 | * @param string $expr The new expression to add into the list |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function __invoke(string $expr) |
||
36 |