| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class TimeValue |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * TimeValue constructor. |
||
| 24 | */ |
||
| 25 | public function __construct(protected int $time, protected float $value) {} |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Checks whether the specified property exists. |
||
| 29 | * |
||
| 30 | * @param string $name property name |
||
| 31 | */ |
||
| 32 | 1 | public function __isset(string $name): bool |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns current value of the specified property, or `null` if the property doesn't exist. |
||
| 39 | * |
||
| 40 | * @param string $name property name |
||
| 41 | * |
||
| 42 | * @return null|float|int |
||
| 43 | */ |
||
| 44 | 7 | public function __get(string $name) |
|
| 53 |