| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Mailcode_Variables_Collection_Invalid extends Mailcode_Variables_Collection |
||
| 24 | { |
||
| 25 | public function add(Mailcode_Variables_Variable $variable) : Mailcode_Variables_Collection |
||
| 26 | { |
||
| 27 | if($variable->isValid()) |
||
| 28 | { |
||
| 29 | return $this; |
||
| 30 | } |
||
| 31 | |||
| 32 | return parent::add($variable); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getFirstError() : OperationResult |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getFirst() : Mailcode_Variables_Variable |
||
| 45 | } |
||
| 46 | } |
||
| 47 |