1 | <?php |
||
21 | final class StatementRepository extends EntityRepository implements BaseStatementRepository |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function findStatement(array $criteria) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function findStatements(array $criteria) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function storeStatement(Statement $mappedStatement, $flush = true) |
||
50 | } |
||
51 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.