Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function __set(string $name, $value) |
||
47 | { |
||
48 | if (property_exists($this, $name)) { |
||
49 | $this->$name = $value; |
||
50 | } else { |
||
51 | throw new InvalidArgumentException('Property "' . $name . '" does not in list [' . implode(',', array_keys(get_class_vars(get_class($this)))) . ']'); |
||
52 | } |
||
53 | } |
||
54 | |||
78 |