1 | <?php namespace Algorit\Synchronizer\Request; |
||
10 | class Caller { |
||
11 | |||
12 | /** |
||
13 | * The container instance |
||
14 | * |
||
15 | * @var \Algorit\Synchronizer\Container |
||
16 | */ |
||
17 | protected $container; |
||
18 | |||
19 | /** |
||
20 | * Create a new instance. |
||
21 | * |
||
22 | * @param \Algorit\Synchronizer\Container $container |
||
23 | * @return |
||
24 | */ |
||
25 | public function __construct(Container $container) |
||
30 | |||
31 | /** |
||
32 | * Get the base name given an entity plural name. |
||
33 | * |
||
34 | * @param string $name |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getFromEntityName($name) |
||
46 | |||
47 | /** |
||
48 | * Call a parser instance and set the aliases. |
||
49 | * |
||
50 | * @param string $name |
||
51 | * @param array $alias |
||
52 | * @return \Algorit\Synchronizer\Request\Contracts\ParserInterface |
||
53 | */ |
||
54 | public function parser($name, Array $alias) |
||
65 | |||
66 | /** |
||
67 | * Call a repository instance. |
||
68 | * |
||
69 | * @param string $name |
||
70 | * @return \Algorit\Synchronizer\Request\Contracts\RepositoryInterface |
||
71 | */ |
||
72 | public function repository($name) |
||
83 | |||
84 | /** |
||
85 | * Get the class name |
||
86 | * |
||
87 | * @param string $type |
||
88 | * @param string $name |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getClass($type, $name) |
||
95 | |||
96 | } |
||
97 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..