| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
||
| 28 | { |
||
| 29 | if (!$targetEntity->reflClass->implementsInterface('SWP\Component\MultiTenancy\Model\TenantAwareInterface')) { |
||
| 30 | return ''; |
||
| 31 | } |
||
| 32 | |||
| 33 | if ($this->hasParameter('tenantId')) { |
||
|
|
|||
| 34 | return $targetTableAlias.'.tenant_id = '.$this->getParameter('tenantId'); |
||
| 35 | } |
||
| 36 | |||
| 37 | return ''; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.