1 | <?php |
||
14 | abstract class CreateCommand extends AbstractCommand |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $templateClass; |
||
20 | |||
21 | /** |
||
22 | * @var TemplateTypeInterface |
||
23 | */ |
||
24 | protected $templateType; |
||
25 | |||
26 | /** |
||
27 | * Construct. |
||
28 | * |
||
29 | * @param string $templateClass |
||
30 | */ |
||
31 | 2 | public function __construct($templateClass = Template::class) |
|
36 | |||
37 | /** |
||
38 | * Template object creation method. |
||
39 | * |
||
40 | * @param string $templateClass |
||
41 | * |
||
42 | * @return TemplateInterface |
||
43 | */ |
||
44 | abstract protected function createTemplate($templateClass); |
||
45 | |||
46 | /** |
||
47 | * Template creation method. |
||
48 | * |
||
49 | * @return Template |
||
50 | */ |
||
51 | 2 | public function resolve() |
|
70 | |||
71 | /** |
||
72 | * Define action template type. |
||
73 | * |
||
74 | * @param TemplateTypeInterface $templateType |
||
75 | * |
||
76 | * @return self |
||
77 | */ |
||
78 | 2 | public function setTemplateType(TemplateTypeInterface $templateType) |
|
84 | } |
||
85 |
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..