| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class Mailcode_Variables_Collection_Invalid extends Mailcode_Variables_Collection |
||
| 24 | { |
||
| 25 | public const ERROR_NO_FIRST_ERROR_AVAILABLE = 101701; |
||
| 26 | |||
| 27 | public function add(Mailcode_Variables_Variable $variable) : Mailcode_Variables_Collection |
||
| 28 | { |
||
| 29 | if($variable->isValid()) |
||
| 30 | { |
||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | |||
| 34 | return parent::add($variable); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getFirstError() : OperationResult |
||
| 50 | ); |
||
| 51 | } |
||
| 53 |