| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class PayementMethod |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $methodId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param int $methodId |
||
| 19 | */ |
||
| 20 | private function __construct($methodId) |
||
| 21 | { |
||
| 22 | $this->methodId = $methodId; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return PayementMethod |
||
| 27 | */ |
||
| 28 | public static function card() |
||
| 29 | { |
||
| 30 | return new PayementMethod(6); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return PayementMethod |
||
| 35 | */ |
||
| 36 | public static function cash() |
||
| 37 | { |
||
| 38 | return new PayementMethod(4); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return PayementMethod |
||
| 43 | */ |
||
| 44 | public static function bankAccount() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |