| Conditions | 5 |
| Paths | 4 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function contains(ProviderInterface $provider) { |
||
| 38 | |||
| 39 | if (false === ($provider instanceof QuoteProviderInterface)) { |
||
| 40 | return false; |
||
| 41 | } |
||
| 42 | |||
| 43 | foreach ($this->getProviders() as $current) { |
||
| 44 | if (false === ($current instanceof QuoteProviderInterface) || $provider->getDomain() !== $current->getDomain()) { |
||
| 45 | continue; |
||
| 46 | } |
||
| 47 | return true; |
||
| 48 | } |
||
| 49 | |||
| 50 | return false; |
||
| 51 | } |
||
| 52 | |||
| 68 |