| 1 | <?php |
||
| 11 | final class LocationReference |
||
| 12 | { |
||
| 13 | /** @var \eZ\Publish\Core\LocationReference\LocationReferenceResolverInterface */ |
||
| 14 | private $resolver; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | private $reference; |
||
| 18 | |||
| 19 | public function __construct(LocationReferenceResolverInterface $resolver, string $reference) |
||
| 24 | |||
| 25 | public function getLocation(): Location |
||
| 29 | |||
| 30 | public function getLocationOrNull(): ?Location |
||
| 38 | |||
| 39 | public function getLocationOrDefault(Location $default): Location |
||
| 47 | |||
| 48 | public function __invoke(): Location |
||
| 52 | |||
| 53 | public function __toString() |
||
| 57 | } |
||
| 58 |