| 1 | <?php |
||
| 14 | class Item implements ItemInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Item properties. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $properties = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * AbstractItem constructor. |
||
| 25 | * |
||
| 26 | * @param string $id |
||
| 27 | */ |
||
| 28 | public function __construct($id = '') |
||
| 32 | |||
| 33 | /** |
||
| 34 | * If parameter is empty uses the object hash |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function setId($id = '') |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function getId() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Implement ArrayAccess. |
||
| 57 | * |
||
| 58 | * @param mixed $offset |
||
| 59 | * |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | public function offsetExists($offset) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Implement ArrayAccess. |
||
| 69 | * |
||
| 70 | * @param mixed $offset |
||
| 71 | * |
||
| 72 | * @return null |
||
| 73 | */ |
||
| 74 | public function offsetGet($offset) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Implement ArrayAccess. |
||
| 81 | * |
||
| 82 | * @param mixed $offset |
||
| 83 | * @param mixed $value |
||
| 84 | */ |
||
| 85 | public function offsetSet($offset, $value) |
||
| 89 | |||
| 90 | /** |
||
| 91 | * Implement ArrayAccess. |
||
| 92 | * |
||
| 93 | * @param mixed $offset |
||
| 94 | */ |
||
| 95 | public function offsetUnset($offset) |
||
| 99 | } |
||
| 100 |