| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class Quantity |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $quantity; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param int $quantity |
||
| 17 | */ |
||
| 18 | private function __construct($quantity) |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $quantity |
||
| 27 | * |
||
| 28 | * @return Quantity |
||
| 29 | */ |
||
| 30 | public static function create($quantity) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return int |
||
| 37 | */ |
||
| 38 | public function getQuantity() |
||
| 43 |