| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | trait DateTrait |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Example: "2014-10-18 23:03:21" |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $date; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @internal |
||
| 33 | * @param string $date |
||
| 34 | */ |
||
| 35 | public function setDate(string $date): void |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @internal |
||
| 42 | * @param null $format |
||
|
|
|||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getDate($format = null): string |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return DateTime |
||
| 54 | */ |
||
| 55 | public function getDateTime(): DateTime |
||
| 58 | } |
||
| 59 | } |