| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | final class DefaultCarrier extends BaseModel implements Carrier |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param array<string,\Inspirum\Balikobot\Model\Method\MethodCollection> $methods |
||
| 18 | */ |
||
| 19 | 13 | public function __construct( |
|
| 24 | 13 | } |
|
| 25 | |||
| 26 | 7 | public function getCode(): string |
|
| 27 | { |
||
| 28 | 7 | return $this->code; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function getName(): string |
|
| 34 | } |
||
| 35 | |||
| 36 | /** @inheritDoc */ |
||
| 37 | 1 | public function getMethods(): array |
|
| 38 | { |
||
| 39 | 1 | return $this->methods; |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | public function getMethodsForVersion(string $version): MethodCollection |
|
| 45 | } |
||
| 46 | |||
| 47 | /** @inheritDoc */ |
||
| 48 | 3 | public function __toArray(): array |
|
| 57 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: