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