Total Complexity | 9 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class CurrentDataTrackerInput implements CurrentDataTrackerInputInterface |
||
12 | { |
||
13 | #[Groups(["current_data_tracker"])] |
||
14 | protected $objectId; |
||
15 | |||
16 | #[Groups(["current_data_tracker"])] |
||
17 | protected \DateTime $dateTime; |
||
18 | |||
19 | #[Groups(["current_data_tracker"])] |
||
20 | protected ?string $objectClass = null; |
||
21 | |||
22 | #[Groups(["current_data_tracker"])] |
||
23 | protected ?string $data = null; |
||
24 | |||
25 | public function __construct() |
||
26 | { |
||
27 | $this->dateTime = new \DateTime(); |
||
28 | } |
||
29 | |||
30 | public function setObjectId(string $objectId): void |
||
31 | { |
||
32 | $this->objectId = $objectId; |
||
33 | } |
||
34 | |||
35 | public function getObjectId(): string |
||
36 | { |
||
37 | return $this->objectId; |
||
38 | } |
||
39 | |||
40 | public function getObjectClass(): ?string |
||
41 | { |
||
42 | return $this->objectClass; |
||
43 | } |
||
44 | |||
45 | public function setObjectClass(?string $objectClass): void |
||
46 | { |
||
47 | $this->objectClass = $objectClass; |
||
48 | } |
||
49 | |||
50 | public function getData(): ?string |
||
51 | { |
||
52 | return $this->data; |
||
53 | } |
||
54 | |||
55 | public function setData(?string $data): void |
||
58 | } |
||
59 | |||
60 | public function getDateTime(): \DateTime |
||
63 | } |
||
64 | |||
65 | public function setDateTime(\DateTime $dateTime): void |
||
66 | { |
||
67 | $this->dateTime = $dateTime; |
||
68 | } |
||
69 | } |
||
70 |