| 1 | <?php |
||
| 14 | final class TransformUsage implements CreatableFromArray |
||
| 15 | { |
||
| 16 | const ROUND_UP = 'up'; |
||
| 17 | const ROUND_DOWN = 'down'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $divideBy; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $round; |
||
| 28 | |||
| 29 | public static function createFromArray(array $data): self |
||
| 37 | |||
| 38 | public function getDivideBy(): int |
||
| 42 | |||
| 43 | public function getRound(): string |
||
| 47 | } |
||
| 48 |