@@ 124-132 (lines=9) @@ | ||
121 | * @param ChronosJobEntity|JobEntityInterface $jobEntity |
|
122 | * @return bool |
|
123 | */ |
|
124 | public function removeJob(JobEntityInterface $jobEntity) |
|
125 | { |
|
126 | if ($this->apiClient->removeJob($jobEntity->getKey())) { |
|
127 | $this->cacheHasToDelete = true; |
|
128 | return true; |
|
129 | } |
|
130 | ||
131 | return false; |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * @param JobEntityInterface $jobEntity |
@@ 109-116 (lines=8) @@ | ||
106 | * @param JobEntityInterface $jobEntity |
|
107 | * @return bool |
|
108 | */ |
|
109 | public function removeJob(JobEntityInterface $jobEntity) |
|
110 | { |
|
111 | if ($this->apiClient->removeJob($jobEntity->getKey())) { |
|
112 | $this->cacheHasToDelete = true; |
|
113 | return true; |
|
114 | } |
|
115 | return false; |
|
116 | } |
|
117 | ||
118 | /** |
|
119 | * @return array|mixed |