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