| 1 | <?php |
||
| 11 | class DateTime implements GetParameterInterface, UriParameterInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \DateTimeInterface |
||
| 15 | */ |
||
| 16 | protected $datetime; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Datetime constructor. |
||
| 20 | * |
||
| 21 | * @param \DateTimeInterface $datetime |
||
| 22 | */ |
||
| 23 | public function __construct(DateTimeInterface $datetime) |
||
| 24 | { |
||
| 25 | $this->datetime = $datetime; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getDateTime(): DateTimeInterface |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function getGetParameterValue(): string |
||
| 43 | |||
| 44 | public function getGetParameterName(): string |
||
| 48 | |||
| 49 | public function getUriParameterValue(): string |
||
| 53 | |||
| 54 | public function getUriParameterName(): string |
||
| 58 | } |
||
| 59 |