| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Operation implements OperationInterface |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | private string $type; |
||
| 15 | |||
| 16 | /** @var float */ |
||
| 17 | private float $numberOne; |
||
| 18 | |||
| 19 | /** @var float */ |
||
| 20 | private float $numberTwo; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Operation constructor. |
||
| 24 | * |
||
| 25 | * @param string $type |
||
| 26 | * @param float $numberOne |
||
| 27 | * @param float $numberTwo |
||
| 28 | */ |
||
| 29 | public function __construct(string $type, float $numberOne, float $numberTwo) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function type(): string |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return float |
||
| 46 | */ |
||
| 47 | public function numberOne(): float |
||
| 48 | { |
||
| 49 | return $this->numberOne; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return float |
||
| 54 | */ |
||
| 55 | public function numberTwo(): float |
||
| 58 | } |
||
| 59 | } |
||
| 60 |