| @@ 82-90 (lines=9) @@ | ||
| 79 | * @return $this |
|
| 80 | * @throws \LogicException |
|
| 81 | */ |
|
| 82 | public function setCreationDate(\DateTimeInterface $date) |
|
| 83 | { |
|
| 84 | if($this->driver->getConfig()['itemDetailedDate']){ |
|
| 85 | $this->creationDate = $date; |
|
| 86 | return $this; |
|
| 87 | }else{ |
|
| 88 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @return \DateTimeInterface |
|
| @@ 110-118 (lines=9) @@ | ||
| 107 | * @return $this |
|
| 108 | * @throws \LogicException |
|
| 109 | */ |
|
| 110 | public function setModificationDate(\DateTimeInterface $date) |
|
| 111 | { |
|
| 112 | if($this->driver->getConfig()['itemDetailedDate']){ |
|
| 113 | $this->modificationDate = $date; |
|
| 114 | return $this; |
|
| 115 | }else{ |
|
| 116 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * @return int |
|