| 1 | <?php |
||
| 16 | class Product implements InputFilterAwareInterface |
||
| 17 | { |
||
| 18 | protected $inputFilter; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @ORM\Id |
||
| 22 | * @ORM\Column(type="integer"); |
||
| 23 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 24 | */ |
||
| 25 | protected $customer_id; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @ORM\Column(type="string") |
||
| 29 | */ |
||
| 30 | protected $product; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Magic getter to expose protected properties. |
||
| 34 | * |
||
| 35 | * @param string $property |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function __get($property) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Magic setter to save protected properties. |
||
| 45 | * |
||
| 46 | * @param string $property |
||
| 47 | * @param mixed $value |
||
| 48 | */ |
||
| 49 | public function __set($property, $value) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Convert the object to an array. |
||
| 56 | * |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function getArrayCopy() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Populate from an array. |
||
| 66 | * |
||
| 67 | * @param array $data |
||
| 68 | */ |
||
| 69 | public function populate($data = array()) |
||
| 74 | |||
| 75 | |||
| 76 | public function setInputFilter(InputFilterInterface $inputFilter) |
||
| 80 | |||
| 81 | public function getInputFilter() |
||
| 85 | } |
||
| 86 |