| Total Complexity | 7 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class TimeContext |
||
| 10 | {
|
||
| 11 | |||
| 12 | /** |
||
| 13 | * Returns integer representation of time context for given date. |
||
| 14 | * For example: 42nd day of the year, 2nd quater of the year etc. |
||
| 15 | * |
||
| 16 | * @param string $timeContext |
||
| 17 | * @param \DateTime|null $date |
||
| 18 | * @return int |
||
| 19 | * @throws \Exception |
||
| 20 | */ |
||
| 21 | 2 | public static function getValueForTag(string $timeContext, ?\DateTime $date = null): int |
|
| 54 |