Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
41 | public function get(string $entityName): ?AbstractElasticsearchDefinition |
||
42 | { |
||
43 | foreach ($this->getDefinitions() as $definition) { |
||
44 | if ($definition->getEntityDefinition()->getEntityName() === $entityName) { |
||
45 | return $definition; |
||
46 | } |
||
47 | } |
||
48 | |||
49 | return null; |
||
50 | } |
||
63 |