1 | <?php |
||
26 | class RequestLog implements EntityInterface |
||
27 | { |
||
28 | use Traits\PropertyIdGeneratedTrait; |
||
29 | |||
30 | /** |
||
31 | * @var \DateTimeImmutable |
||
32 | * @ORM\Column(name="started_at", type="datetime_immutable", nullable=false) |
||
33 | * @Assert\NotBlank() |
||
34 | */ |
||
35 | private $startedAt; |
||
36 | |||
37 | /** |
||
38 | * @var \DateTimeImmutable|null |
||
39 | * @ORM\Column(name="finished_at", type="datetime_immutable", nullable=true) |
||
40 | * @Assert\NotBlank() |
||
41 | */ |
||
42 | private $finishedAt; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | * @ORM\Column(name="type", type="string", length=50, nullable=false) |
||
47 | */ |
||
48 | private $type; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | * @ORM\Column(name="base_path", type="string", length=255, nullable=false) |
||
53 | */ |
||
54 | private $basePath; |
||
55 | |||
56 | /** |
||
57 | * @var int |
||
58 | * @ORM\Column(name="mili_seconds", type="integer", nullable=false) |
||
59 | */ |
||
60 | private $miliSeconds; |
||
61 | |||
62 | /** |
||
63 | * @var bool |
||
64 | * @ORM\Column(name="successfull", type="boolean", nullable=false) |
||
65 | */ |
||
66 | private $successful; |
||
67 | |||
68 | //------------------------------------------------------------------------------------------- |
||
69 | /** |
||
70 | * @var ArrayCollection|RequestLogDetail[] |
||
71 | * @ORM\OneToMany(targetEntity="App\Entity\System\RequestLogDetail", mappedBy="requestLog") |
||
72 | */ |
||
73 | private $requestLogDetails; |
||
74 | |||
75 | /** |
||
76 | * @var Member|null |
||
77 | * @ORM\ManyToOne(targetEntity="App\Entity\Parking\Member") |
||
78 | * @ORM\JoinColumn(name="member_id", referencedColumnName="id", nullable=true) |
||
79 | */ |
||
80 | private $member; |
||
81 | |||
82 | //------------------------------------------------------------------------------------------- |
||
83 | |||
84 | 16 | public function __construct( |
|
99 | |||
100 | //------------------------------------------------------------------------------------------- |
||
101 | |||
102 | public function getStartedAt(): \DateTimeImmutable |
||
106 | |||
107 | /** |
||
108 | * @return \DateTimeImmutable|null |
||
109 | */ |
||
110 | public function getFinishedAt(): ?\DateTimeImmutable |
||
114 | |||
115 | 16 | public function setFinishedAt(\DateTimeImmutable $finishedAt): self |
|
121 | |||
122 | public function getType(): string |
||
126 | |||
127 | public function getBasePath(): string |
||
131 | |||
132 | public function getMiliSeconds(): int |
||
136 | |||
137 | public function setMiliSeconds(int $miliSeconds): self |
||
143 | |||
144 | public function isSuccessful(): bool |
||
148 | |||
149 | 16 | public function setSuccessful(bool $successful): self |
|
155 | |||
156 | /** |
||
157 | * @return RequestLogDetail[]|ArrayCollection |
||
158 | */ |
||
159 | public function getRequestLogDetails(): ArrayCollection |
||
163 | |||
164 | /** |
||
165 | * @param RequestLogDetail[]|ArrayCollection $requestLogDetails |
||
|
|||
166 | */ |
||
167 | public function setRequestLogDetails(ArrayCollection $requestLogDetails): self |
||
173 | |||
174 | public function getMember(): ?Member |
||
178 | |||
179 | public function setMember(?Member $member): self |
||
185 | } |
||
186 |