Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __construct($value, $valueObject) |
||
21 | { |
||
22 | $refl = new ReflectionClass($valueObject); |
||
23 | $this->name = strtolower((string) preg_replace('/(?<!^)[A-Z]/', '_$0', $refl->getShortName())); |
||
24 | $this->value = $value; |
||
25 | parent::__construct( |
||
26 | 422, |
||
27 | '"' . $value . '" is not a valid value for value object ' . $this->name |
||
28 | ); |
||
42 |