| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class Data |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Get property |
||
| 12 | * |
||
| 13 | * @param string $property |
||
| 14 | * @return mixed |
||
| 15 | */ |
||
| 16 | public function __get($property) |
||
| 17 | { |
||
| 18 | if (property_exists($this, $property)) { |
||
| 19 | return $this->$property; |
||
| 20 | } else { |
||
| 21 | return null; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Set property |
||
| 27 | * |
||
| 28 | * @param string $property |
||
| 29 | * @param mixed $value |
||
| 30 | * @return object |
||
| 31 | */ |
||
| 32 | public function __set($property, $value) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |