Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 8 | public function store(string $key, $data, DateTime $timestamp): void |
|
26 | { |
||
27 | 8 | $objectEntry = new EntryEntity(); |
|
28 | 8 | $objectEntry->setKey($key); |
|
29 | 8 | $objectEntry->setValue($data); |
|
30 | 8 | $objectEntry->setCreatedAt($this->toUTC($timestamp)); |
|
31 | |||
32 | 8 | $this->objectEntryRepository->save($objectEntry); |
|
33 | 8 | } |
|
62 |