| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class AvailableMethodDetails implements AvailableMethodDetailsInterface |
||
| 9 | { |
||
| 10 | use Injectable; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var MethodInterface |
||
| 14 | */ |
||
| 15 | private $method; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param MethodInterface $method |
||
| 19 | */ |
||
| 20 | public function __construct(MethodInterface $method) |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getURLSegment() |
||
| 26 | { |
||
| 27 | return $this->method->getURLSegment(); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getName() |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getDescription() |
||
| 36 | { |
||
| 37 | return $this->method->getRegisterHandler()->getDescription(); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getSupportLink() |
||
| 41 | { |
||
| 42 | return $this->method->getRegisterHandler()->getSupportLink(); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function jsonSerialize() |
||
| 52 | ]; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |