Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Packback\Prices; |
||
83 | 4 | public function __set($name, $value) |
|
84 | { |
||
85 | 4 | if (!property_exists($this, $name)) { |
|
86 | 2 | throw new \OutOfRangeException(sprintf( |
|
87 | 2 | '%s does not contain a property by the name of "%s"', |
|
88 | 2 | __CLASS__, |
|
89 | $name |
||
90 | 2 | )); |
|
91 | } |
||
92 | 2 | $this->{$name} = $value; |
|
93 | 2 | return $this; |
|
94 | } |
||
95 | |||
108 |