| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | private function getInputOutputMetadata(string $class, string $inputOrOutput, array $context) |
||
| 26 | { |
||
| 27 | if (null === $this->resourceMetadataFactory || null !== ($context[$inputOrOutput]['class'] ?? null)) { |
||
| 28 | return $context[$inputOrOutput]['class'] ?? null; |
||
| 29 | } |
||
| 30 | |||
| 31 | try { |
||
| 32 | $metadata = $this->resourceMetadataFactory->create($class); |
||
| 33 | } catch (ResourceClassNotFoundException $e) { |
||
| 34 | return null; |
||
| 35 | } |
||
| 36 | |||
| 37 | return $metadata->getAttribute($inputOrOutput)['class'] ?? null; |
||
| 38 | } |
||
| 50 |