1 | <?php |
||
18 | class Task |
||
19 | { |
||
20 | /** |
||
21 | * The entity manager. |
||
22 | * |
||
23 | * @var EntityManagerInterface |
||
24 | */ |
||
25 | protected $entityManager; |
||
26 | |||
27 | /** |
||
28 | * The entity. |
||
29 | * |
||
30 | * @var TaskEntity |
||
31 | */ |
||
32 | protected $entity; |
||
33 | |||
34 | /** |
||
35 | * Create task object. |
||
36 | * |
||
37 | * @param EntityManagerInterface $entityManager |
||
38 | * @param TaskEntity $entity |
||
39 | */ |
||
40 | public function __construct(EntityManagerInterface $entityManager, TaskEntity $entity) |
||
45 | |||
46 | /** |
||
47 | * Get entity |
||
48 | * |
||
49 | * @return TaskEntity |
||
50 | */ |
||
51 | public function getEntity() |
||
55 | |||
56 | /** |
||
57 | * Apply PID. |
||
58 | * |
||
59 | * @param int $pid |
||
60 | * |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function applyPid($pid) |
||
70 | |||
71 | /** |
||
72 | * Apply exit code. |
||
73 | * |
||
74 | * @param int $exitCode |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function applyExitCode($exitCode) |
||
85 | } |
||
86 |