| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class RegularMarketChangePercent extends AbstractWriteModel |
||
| 8 | { |
||
| 9 | public const FMT = 'fmt'; |
||
| 10 | public const RAW = 'raw'; |
||
| 11 | |||
| 12 | protected const PROPERTY_NAME_MAP = [ |
||
| 13 | 'raw' => self::RAW, |
||
| 14 | 'Raw' => self::RAW, |
||
| 15 | 'fmt' => self::FMT, |
||
| 16 | 'Fmt' => self::FMT, |
||
| 17 | ]; |
||
| 18 | |||
| 19 | private const METADATA = [ |
||
| 20 | self::FMT => [ |
||
| 21 | 'type' => self::TYPE_STRING, |
||
| 22 | ], |
||
| 23 | self::RAW => [ |
||
| 24 | 'type' => self::TYPE_FLOAT, |
||
| 25 | ], |
||
| 26 | ]; |
||
| 27 | |||
| 28 | protected ?string $fmt = null; |
||
| 29 | protected ?float $raw = null; |
||
| 30 | |||
| 31 | 1 | public function getFmt(): ?string |
|
| 32 | { |
||
| 33 | 1 | return $this->fmt; |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function setFmt(string $fmt): self |
|
| 41 | } |
||
| 42 | |||
| 43 | 1 | public function getRaw(): ?float |
|
| 46 | } |
||
| 47 | |||
| 48 | 1 | public function setRaw(float $raw): self |
|
| 53 | } |
||
| 54 | |||
| 55 | 13 | protected function metadata(): array |
|
| 60 |