| 1 | <?php namespace Comodojo\Extender\Traits; |
||
| 21 | trait EntityManagerTrait { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var EntityManager |
||
| 25 | */ |
||
| 26 | protected $em; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get EntityManager |
||
| 30 | * |
||
| 31 | * @return EntityManager |
||
| 32 | */ |
||
| 33 | public function getEntityManager() { |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Set EntityManager |
||
| 41 | * |
||
| 42 | * @param string $id |
||
|
|
|||
| 43 | * @return Schedule |
||
| 44 | */ |
||
| 45 | public function setEntityManager(EntityManager $em) { |
||
| 52 | |||
| 53 | } |
||
| 54 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.