| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait MutableDatablePostModelTrait |
||
| 9 | { |
||
| 10 | use DatablePostModelTrait; |
||
| 11 | |||
| 12 | public function setDate(DateTimeInterface $date): self |
||
| 17 | } |
||
| 18 | |||
| 19 | public function setDateGmt(DateTimeInterface $date): self |
||
| 20 | { |
||
| 21 | $this->post->post_date_gmt = $date->format(DatableInterface::DATE_FORMAT); |
||
| 22 | |||
| 23 | return $this; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setDateModified(DateTimeInterface $date): self |
||
| 27 | { |
||
| 28 | $this->post->post_modified = $date->format(DatableInterface::DATE_FORMAT); |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function setDateModifiedGmt(DateTimeInterface $date): self |
||
| 38 | } |
||
| 39 | } |
||
| 40 |