1 | <?php |
||
15 | class FormRequest |
||
16 | { |
||
17 | use ORMBehaviors\Timestampable\Timestampable; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | * |
||
22 | * @ORM\Column(name="id", type="integer") |
||
23 | * @ORM\Id |
||
24 | * @ORM\GeneratedValue(strategy="AUTO") |
||
25 | */ |
||
26 | private $id; |
||
27 | |||
28 | /** |
||
29 | * @var FormRequestType |
||
30 | * @Assert\Type("object") |
||
31 | * @Assert\Valid |
||
32 | * @ORM\ManyToOne(targetEntity="FormRequestType", inversedBy="requests") |
||
33 | * @Groups({"Detail"}) |
||
34 | */ |
||
35 | private $type; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | * @Assert\NotBlank() |
||
40 | * @Assert\Type("string") |
||
41 | * @Assert\Length( |
||
42 | * max = 255 |
||
43 | * ) |
||
44 | * @ORM\Column(type="string", length=255) |
||
45 | * @Groups({"Detail"}) |
||
46 | */ |
||
47 | private $status; |
||
48 | |||
49 | /** |
||
50 | * @var User |
||
51 | * @Assert\Type("object") |
||
52 | * @Assert\Valid |
||
53 | * @ORM\ManyToOne(targetEntity="User", inversedBy="formRequests") |
||
54 | */ |
||
55 | private $user; |
||
56 | |||
57 | /** |
||
58 | * @var \DateTime |
||
59 | * @Assert\Date() |
||
60 | * @ORM\Column(type="datetime") |
||
61 | * @Groups({"Detail"}) |
||
62 | */ |
||
63 | private $date; |
||
64 | |||
65 | /** |
||
66 | * Get id. |
||
67 | * |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getId() |
||
74 | |||
75 | /** |
||
76 | * Set type. |
||
77 | * |
||
78 | * @param FormRequestType $type |
||
79 | * |
||
80 | * @return FormRequest |
||
81 | */ |
||
82 | public function setType(FormRequestType $type) |
||
88 | |||
89 | /** |
||
90 | * Get type. |
||
91 | * |
||
92 | * @return FormRequestType |
||
93 | */ |
||
94 | 1 | public function getType() |
|
98 | |||
99 | /** |
||
100 | * Set status. |
||
101 | * |
||
102 | * @param string $status |
||
103 | * |
||
104 | * @return FormRequest |
||
105 | */ |
||
106 | public function setStatus($status) |
||
112 | |||
113 | /** |
||
114 | * Get status. |
||
115 | * |
||
116 | * @return string |
||
117 | */ |
||
118 | 1 | public function getStatus() |
|
122 | |||
123 | /** |
||
124 | * Set user. |
||
125 | * |
||
126 | * @param User $user |
||
127 | * |
||
128 | * @return FormRequest |
||
129 | */ |
||
130 | public function setUser(User $user) |
||
136 | |||
137 | /** |
||
138 | * Get user. |
||
139 | * |
||
140 | * @return User |
||
141 | */ |
||
142 | public function getUser() |
||
146 | |||
147 | /** |
||
148 | * Set date. |
||
149 | * |
||
150 | * @param \DateTime $date |
||
151 | * |
||
152 | * @return FormRequest |
||
153 | */ |
||
154 | public function setDate($date) |
||
160 | /** |
||
161 | * Get date. |
||
162 | * |
||
163 | * @return \DateTime |
||
164 | */ |
||
165 | 1 | public function getDate() |
|
169 | } |
||
170 |