1 | <?php |
||
30 | class Carton extends ObjectAbstract implements CartonInterface |
||
31 | { |
||
32 | use SessionAwareTrait; |
||
33 | |||
34 | /** |
||
35 | * carton name |
||
36 | * |
||
37 | * @var string |
||
38 | * @access protected |
||
39 | */ |
||
40 | protected $name; |
||
41 | |||
42 | /** |
||
43 | * Constructor |
||
44 | * |
||
45 | * @param string $name |
||
46 | * @access public |
||
47 | */ |
||
48 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function __get(/*# string */ $name) |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function __set(/*# string */ $name, $value) |
||
74 | |||
75 | /** |
||
76 | * {@inheritDoc} |
||
77 | */ |
||
78 | public function __isset(/*# string */ $name) |
||
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | */ |
||
86 | public function __unset(/*# string */ $name) |
||
90 | |||
91 | /** |
||
92 | * {@inheritDoc} |
||
93 | */ |
||
94 | public function getName()/*# : string */ |
||
98 | |||
99 | /** |
||
100 | * Convert to an array |
||
101 | * |
||
102 | * @return array |
||
103 | * @access public |
||
104 | * @api |
||
105 | */ |
||
106 | public function toArray()/*# : array */ |
||
110 | |||
111 | /** |
||
112 | * {@inheritDoc} |
||
113 | */ |
||
114 | public function fromArray(array $data) |
||
119 | |||
120 | public function offsetExists($offset)/*# : bool */ |
||
124 | |||
125 | public function offsetGet($offset) |
||
132 | |||
133 | public function offsetSet($offset, $value) |
||
137 | |||
138 | public function offsetUnset($offset) |
||
142 | |||
143 | public function count() |
||
147 | |||
148 | public function getIterator() |
||
152 | |||
153 | /** |
||
154 | * Retrieve the data container |
||
155 | * |
||
156 | * @return ArrayObject |
||
157 | * @access protected |
||
158 | */ |
||
159 | protected function data() |
||
163 | } |
||
164 |