1 | <?php |
||
13 | class StoreJobBusinessCaseFactory implements StoreJobBusinessCaseFactoryInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var StoreJobBusinessCaseInterface[] |
||
17 | */ |
||
18 | private $storeJobBusinessCases; |
||
19 | |||
20 | public function addBusinesCase(StoreJobBusinessCaseInterface $oStoreJob) |
||
25 | public function getBusinessCaseWithJob($sJobName) |
||
26 | { |
||
27 | /** @var StoreJobBusinessCaseInterface $oStore */ |
||
28 | foreach ($this->storeJobBusinessCases as $oStore) |
||
29 | { |
||
30 | if ($oStore->isJobAvailable($sJobName)) |
||
31 | { |
||
32 | return $oStore; |
||
33 | } |
||
34 | } |
||
35 | return null; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return StoreJobBusinessCaseInterface[] |
||
40 | */ |
||
41 | public function getAllStoreJobBusinessCase() |
||
45 | } |