1 | <?php |
||
22 | abstract class AbstractEntry implements EntryInterface |
||
23 | { |
||
24 | /** |
||
25 | * @ORM\Id() |
||
26 | * @ORM\Column(name="id", type="integer") |
||
27 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * @ORM\Column(name="workflow_name", type="string", length=60) |
||
35 | * |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $workflowName; |
||
40 | |||
41 | /** |
||
42 | * @ORM\Column(name="state", type="integer") |
||
43 | * |
||
44 | * |
||
45 | * @var integer |
||
46 | */ |
||
47 | protected $state; |
||
48 | |||
49 | /** |
||
50 | * Шаги привязанные к процессу wf |
||
51 | * |
||
52 | * @ORM\OneToMany(targetEntity="Step", mappedBy="entry") |
||
53 | * |
||
54 | * @var StepInterface |
||
55 | */ |
||
56 | protected $steps; |
||
57 | |||
58 | /** |
||
59 | * AbstractEntry constructor. |
||
60 | */ |
||
61 | public function __construct() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getId() |
||
73 | |||
74 | /** |
||
75 | * @param string $id |
||
76 | * |
||
77 | * @return $this |
||
78 | */ |
||
79 | public function setId($id) |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getWorkflowName() |
||
93 | |||
94 | /** |
||
95 | * @param string $workflowName |
||
96 | * |
||
97 | * @return $this |
||
98 | */ |
||
99 | public function setWorkflowName($workflowName) |
||
105 | |||
106 | /** |
||
107 | * @return integer |
||
108 | */ |
||
109 | public function getState() |
||
113 | |||
114 | /** |
||
115 | * @param integer $state |
||
116 | * |
||
117 | * @return $this |
||
118 | */ |
||
119 | public function setState($state) |
||
125 | |||
126 | /** |
||
127 | * Определяет иницилазирован ли процесс workflow |
||
128 | * |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function isInitialized() |
||
135 | |||
136 | |||
137 | /** |
||
138 | * @return ArrayCollection|StepInterface[] |
||
139 | */ |
||
140 | public function getSteps() |
||
144 | |||
145 | /** |
||
146 | * @param StepInterface $step |
||
147 | * |
||
148 | * @return $this |
||
149 | */ |
||
150 | public function addCurrentStep(StepInterface $step) |
||
159 | } |
||
160 |
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..