| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class PayMethod implements IParam |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var PayMethodEnum |
||
| 24 | */ |
||
| 25 | private $value; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * PayMethod constructor. |
||
| 29 | * |
||
| 30 | * @param PayMethodEnum $method |
||
| 31 | */ |
||
| 32 | 2 | public function __construct(PayMethodEnum $method) |
|
| 33 | { |
||
| 34 | 2 | $this->value = $method; |
|
| 35 | } |
||
| 36 | |||
| 37 | 2 | public function __toString(): string |
|
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | 2 | public function getParamName(): string |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return PayMethodEnum |
||
| 50 | */ |
||
| 51 | 1 | public function getValue(): PayMethodEnum |
|
| 54 | } |
||
| 55 | } |
||
| 56 |