| 1 | 2 | simandl | <?php |
| 2 | | | |
| 3 | | | namespace Phem\Core; |
| 4 | | | |
| 5 | | | /** |
| 6 | | | * Description of Object |
| 7 | | | * |
| 8 | | | * @author Vejvis |
| 9 | | | */ |
| 10 | | | abstract class Object |
| 11 | | | { |
| 12 | | | |
| 13 | | | /** |
| 14 | | | * Returns property value. Do not call directly. |
| 15 | | | * @param string property name |
| 16 | | | * @return mixed property value |
| 17 | | | * @throws MemberAccessException if the property is not defined. |
| 18 | | | */ |
| 19 | | | public function &__get($name) |
| 20 | | | { |
| 21 | | | return ObjectMixin::get($this, $name); |
| 22 | | | } |
| 23 | | | |
| 24 | | | /** |
| 25 | | | * Sets value of a property. Do not call directly. |
| 26 | | | * @param string property name |
| 27 | | | * @param mixed property value |
| 28 | | | * @return void |
| 29 | | | * @throws MemberAccessException if the property is not defined or is read-only |
| 30 | | | */ |
| 31 | | | public function __set($name, $value) |
| 32 | | | { |
| 33 | | | return ObjectMixin::set($this, $name, $value); |
| 34 | | | } |
| 35 | | | |
| 36 | | | } |