| Total Complexity | 8 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class StrAsServiceReference implements XRoadMember, XRoadService |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $parts; |
||
| 11 | |||
| 12 | 1 | public function xRoadInstance(): string |
|
| 13 | { |
||
| 14 | 1 | return $this->parts[0]; |
|
| 15 | } |
||
| 16 | |||
| 17 | 1 | public function memberClass(): string |
|
| 18 | { |
||
| 19 | 1 | return $this->parts[1]; |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function memberCode(): string |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function subSystemCode(): string |
|
| 28 | { |
||
| 29 | 1 | return $this->parts[3]; |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function serviceCode(): string |
|
| 33 | { |
||
| 34 | 1 | return $this->parts[4]; |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function serviceVersion(): string |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | public function __construct(string $reference) |
|
| 43 | { |
||
| 50 | } |
||
| 51 | |||
| 53 |