@@ 88-96 (lines=9) @@ | ||
85 | * @return $this |
|
86 | * @throws \LogicException |
|
87 | */ |
|
88 | public function setCreationDate(\DateTimeInterface $date) |
|
89 | { |
|
90 | if($this->driver->getConfig()['itemDetailedDate']){ |
|
91 | $this->creationDate = $date; |
|
92 | return $this; |
|
93 | }else{ |
|
94 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
|
95 | } |
|
96 | } |
|
97 | ||
98 | /** |
|
99 | * @return \DateTimeInterface |
|
@@ 116-124 (lines=9) @@ | ||
113 | * @return $this |
|
114 | * @throws \LogicException |
|
115 | */ |
|
116 | public function setModificationDate(\DateTimeInterface $date) |
|
117 | { |
|
118 | if($this->driver->getConfig()['itemDetailedDate']){ |
|
119 | $this->modificationDate = $date; |
|
120 | return $this; |
|
121 | }else{ |
|
122 | throw new \LogicException('Cannot access to the creation date when the "itemDetailedDate" configuration is disabled.'); |
|
123 | } |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * @return int |