@@ 96-104 (lines=9) @@ | ||
93 | * @return $this |
|
94 | * @throws \LogicException |
|
95 | */ |
|
96 | public function setCreationDate(\DateTimeInterface $date) |
|
97 | { |
|
98 | if($this->driver->getConfig()['itemDetailedDate']){ |
|
99 | $this->creationDate = $date; |
|
100 | return $this; |
|
101 | }else{ |
|
102 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
|
103 | } |
|
104 | } |
|
105 | ||
106 | /** |
|
107 | * @return \DateTimeInterface |
|
@@ 124-132 (lines=9) @@ | ||
121 | * @return $this |
|
122 | * @throws \LogicException |
|
123 | */ |
|
124 | public function setModificationDate(\DateTimeInterface $date) |
|
125 | { |
|
126 | if($this->driver->getConfig()['itemDetailedDate']){ |
|
127 | $this->modificationDate = $date; |
|
128 | return $this; |
|
129 | }else{ |
|
130 | throw new \LogicException('Cannot access to the modification date when the "itemDetailedDate" configuration is disabled.'); |
|
131 | } |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * @return int |