1: <?php
2:
3: namespace LaravelUi5\Core\Introspection\App;
4:
5: /**
6: * Represents a UI5 routing target reduced to its navigational identity.
7: *
8: * As a result, the target is reduced to:
9: *
10: * - `key` : the target identifier as referenced by routes,
11: * - `name` : the resolved view name representing the actual page.
12: *
13: * All other target configuration options (e.g. control placement, aggregation,
14: * transitions) are considered runtime-specific and are therefore excluded.
15: *
16: * @see https://sdk.openui5.org/#/topic/902313063d6f45aeaa3388cc4c13c34e
17: */
18: final readonly class Ui5Target
19: {
20: public function __construct(
21: private string $key,
22: private string $name,
23: )
24: {
25: }
26:
27: public function getKey(): string
28: {
29: return $this->key;
30: }
31:
32: public function getName(): string
33: {
34: return $this->name;
35: }
36: }
37: