1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Core\Entity; |
4: | |
5: | use DateTimeInterface; |
6: | |
7: | /** |
8: | * @api |
9: | */ |
10: | interface Temporal |
11: | { |
12: | /** |
13: | * Get properties that accept date and time values |
14: | * |
15: | * If `["*"]` is returned, a {@see DateTimeInterface} instance may be |
16: | * applied to any accessible property. |
17: | * |
18: | * @return string[] |
19: | */ |
20: | public static function getDateProperties(): array; |
21: | } |
22: |