1 | <?php |
||
19 | class Order |
||
20 | { |
||
21 | /** |
||
22 | * @Id |
||
23 | * @Column(type="string", length=40) |
||
24 | */ |
||
25 | private $id; |
||
26 | |||
27 | /** |
||
28 | * @Column(type="json_array", name="`order`") |
||
29 | */ |
||
30 | private $order; |
||
31 | |||
32 | /** |
||
33 | * @Column(type="string", length=128) |
||
34 | * |
||
35 | * @NotBlank |
||
36 | * @Length(max=128) |
||
37 | */ |
||
38 | private $fullname; |
||
39 | |||
40 | /** |
||
41 | * @Column(type="datetime") |
||
42 | */ |
||
43 | private $createdAt; |
||
44 | |||
45 | /** |
||
46 | * @Column(type="string", length=128) |
||
47 | * |
||
48 | * @NotBlank |
||
49 | * @Length(max=128) |
||
50 | */ |
||
51 | private $phone; |
||
52 | |||
53 | /** |
||
54 | * @Column(type="string", length=128) |
||
55 | * |
||
56 | * @NotBlank |
||
57 | |||
58 | * @Length(max=128) |
||
59 | */ |
||
60 | private $email; |
||
61 | |||
62 | |||
63 | /** |
||
64 | * @Column(type="string", length=128) |
||
65 | * |
||
66 | * @NotBlank |
||
67 | * @Length(max=128) |
||
68 | */ |
||
69 | private $date; |
||
70 | |||
71 | /** |
||
72 | * @Column(type="text", nullable=true) |
||
73 | */ |
||
74 | private $observations; |
||
75 | |||
76 | public function __construct() |
||
81 | |||
82 | public function getId() |
||
86 | |||
87 | public function getCreatedAt() |
||
91 | |||
92 | public function loadFromCart(Cart $cart) |
||
96 | |||
97 | public function getOrder() |
||
101 | |||
102 | public function setOrder(array $order) |
||
108 | |||
109 | public function getFullname() |
||
113 | |||
114 | public function setFullname($fullname) |
||
120 | |||
121 | public function getPhone() |
||
125 | |||
126 | public function setPhone($phone) |
||
132 | |||
133 | public function getEmail() |
||
137 | |||
138 | public function setEmail($email) |
||
144 | |||
145 | public function getDate() |
||
149 | |||
150 | public function setDate($date) |
||
156 | |||
157 | public function getObservations() |
||
161 | |||
162 | public function setObservations($observations) |
||
168 | |||
169 | } |
||
170 |