1 | <?php |
||
8 | class EntityManager implements ManagerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $arrayService = []; |
||
14 | |||
15 | /** |
||
16 | * @return mixed |
||
17 | */ |
||
18 | public function insert(AbstractEntity $object) |
||
28 | |||
29 | /** |
||
30 | * @param AbstractEntity $object |
||
31 | * |
||
32 | * @return bool|ManagerInterface |
||
33 | */ |
||
34 | public function getSupport(AbstractEntity $object) |
||
44 | |||
45 | public function update(AbstractEntity $object) |
||
55 | |||
56 | public function delete(AbstractEntity $object) |
||
66 | |||
67 | /** |
||
68 | * @param ManagerInterface $service |
||
69 | * |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function addService(ManagerInterface $service) |
||
78 | |||
79 | /** |
||
80 | * @return array |
||
81 | */ |
||
82 | public function getServices() |
||
86 | |||
87 | /** |
||
88 | * @param AbstractEntity $object |
||
89 | * |
||
90 | * @return bool|EntityRepository |
||
91 | */ |
||
92 | public function getRepository(AbstractEntity $object) |
||
100 | |||
101 | /** |
||
102 | * @param AbstractEntity $object |
||
103 | * |
||
104 | * @return bool|AbstractManager |
||
|
|||
105 | */ |
||
106 | public function getManager(AbstractEntity $object) |
||
112 | } |
||
113 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.