| 1 | <?php declare(strict_types=1); |
||
| 11 | class InterestOverTimeResult implements JsonSerializable |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var DateTimeInterface |
||
| 15 | */ |
||
| 16 | private $interestAt; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int[] |
||
| 20 | */ |
||
| 21 | private $values; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var bool |
||
| 25 | */ |
||
| 26 | private $hasData; |
||
| 27 | |||
| 28 | 3 | public function __construct(DateTimeInterface $at, array $values, bool $hasData) |
|
| 34 | |||
| 35 | 1 | public function getInterestAt(): DateTimeInterface |
|
| 39 | |||
| 40 | 1 | public function getValues(): array |
|
| 44 | |||
| 45 | 1 | public function getFirstValue(): int |
|
| 49 | |||
| 50 | 1 | public function hasData(): bool |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @inheritDoc |
||
| 57 | */ |
||
| 58 | 1 | public function jsonSerialize(): array |
|
| 67 | } |
||
| 68 |