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 | /** |
||
43 | * @ORM\Column(name="state", type="integer") |
||
44 | * |
||
45 | * |
||
46 | * @var integer |
||
47 | */ |
||
48 | protected $state; |
||
49 | |||
50 | /** |
||
51 | * @ORM\OneToMany(targetEntity="CurrentStep", mappedBy="entry") |
||
52 | * |
||
53 | * @var CurrentStepInterface[]|ArrayCollection |
||
54 | */ |
||
55 | protected $currentSteps; |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @ORM\OneToMany(targetEntity="HistoryStep", mappedBy="entry") |
||
60 | * @ORM\OrderBy({"finishDate"="ASC"}) |
||
61 | * |
||
62 | * @var HistoryStepInterface[]|ArrayCollection |
||
63 | */ |
||
64 | protected $historySteps; |
||
65 | |||
66 | |||
67 | /** |
||
68 | * |
||
69 | */ |
||
70 | public function __construct() |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getId() |
||
83 | |||
84 | /** |
||
85 | * @param string $id |
||
86 | * |
||
87 | * @return $this |
||
88 | */ |
||
89 | public function setId($id) |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getWorkflowName() |
||
103 | |||
104 | /** |
||
105 | * @param string $workflowName |
||
106 | * |
||
107 | * @return $this |
||
108 | */ |
||
109 | public function setWorkflowName($workflowName) |
||
115 | |||
116 | /** |
||
117 | * @return integer |
||
118 | */ |
||
119 | public function getState() |
||
123 | |||
124 | /** |
||
125 | * @param integer $state |
||
126 | * |
||
127 | * @return $this |
||
128 | */ |
||
129 | public function setState($state) |
||
135 | |||
136 | /** |
||
137 | * Определяет иницилазирован ли процесс workflow |
||
138 | * |
||
139 | * @return bool |
||
140 | */ |
||
141 | public function isInitialized() |
||
145 | |||
146 | /** |
||
147 | * @return ArrayCollection|CurrentStepInterface[] |
||
148 | */ |
||
149 | public function getCurrentSteps() |
||
153 | |||
154 | /** |
||
155 | * @param CurrentStepInterface $currentStep |
||
156 | * |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function addCurrentStep(CurrentStepInterface $currentStep) |
||
169 | |||
170 | |||
171 | |||
172 | /** |
||
173 | * @return ArrayCollection|HistoryStepInterface[] |
||
174 | */ |
||
175 | public function getHistorySteps() |
||
179 | |||
180 | /** |
||
181 | * @param HistoryStepInterface $historyStep |
||
182 | * |
||
183 | * @return $this |
||
184 | */ |
||
185 | public function addHistoryStep(HistoryStepInterface $historyStep) |
||
194 | } |
||
195 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.