| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function read(?SchemaProviderInterface $nextProvider = null): ?array |
||
| 29 | { |
||
| 30 | $schema = $this->cache->get($this->key); |
||
| 31 | |||
| 32 | if ($schema !== null || $nextProvider === null) { |
||
| 33 | return $schema; |
||
| 34 | } |
||
| 35 | |||
| 36 | $schema = $nextProvider->read(); |
||
| 37 | if ($schema !== null) { |
||
| 38 | $this->write($schema); |
||
| 39 | } |
||
| 40 | return $schema; |
||
| 41 | } |
||
| 53 |