| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class FieldReference |
||
| 7 | { |
||
| 8 | /** @var string */ |
||
| 9 | private $managerKey; |
||
| 10 | |||
| 11 | /** @var string */ |
||
| 12 | private $fieldKey; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $fragmentKey; |
||
| 16 | |||
| 17 | public function __construct(string $managerKey, string $fieldKey, string $fragmentKey = null) |
||
| 18 | { |
||
| 19 | $this->managerKey = $managerKey; |
||
| 20 | $this->fieldKey = $fieldKey; |
||
| 21 | $this->fragmentKey = $fragmentKey; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getManagerKey(): string |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getFieldKey(): string |
||
| 30 | { |
||
| 31 | return $this->fieldKey; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getFragmentKey(): ?string |
||
| 35 | { |
||
| 36 | return $this->fragmentKey; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function hasFragmentKey(): bool |
||
| 42 | } |
||
| 43 | |||
| 44 | public function toArray(): array |
||
| 45 | { |
||
| 53 |