src/NotificationType.php 1 location
|
@@ 55-60 (lines=6) @@
|
| 52 |
|
->setVersion((int)array_shift($parts)); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
if ('service' === $name) { |
| 56 |
|
return $instance |
| 57 |
|
->setService(true) |
| 58 |
|
->setType(array_shift($parts)) |
| 59 |
|
->setVersion((int)array_shift($parts)); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
throw new \InvalidArgumentException('Invalid string.'); |
| 63 |
|
} |
src/UniqueServiceName.php 1 location
|
@@ 61-66 (lines=6) @@
|
| 58 |
|
->setVersion((int)array_shift($parts)); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
if ('service' === $name) { |
| 62 |
|
return $instance |
| 63 |
|
->setService(true) |
| 64 |
|
->setType(array_shift($parts)) |
| 65 |
|
->setVersion((int)array_shift($parts)); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
throw new \InvalidArgumentException('Invalid string.'); |
| 69 |
|
} |