Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class Definition implements IDefinition |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var string the actual definition |
||
19 | */ |
||
20 | protected $_definition; |
||
21 | |||
22 | /** |
||
23 | * Class constructor. It stores the definition string and validates it. |
||
24 | * |
||
25 | * @param string $definition the definition |
||
26 | * |
||
27 | * @throws \InvalidArgumentException if the definition is invalid |
||
28 | */ |
||
29 | public function __construct($definition) |
||
39 |