AbstractResourceApplicationService.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Application\Services\Resource; |
| 4 | |
| 5 | use AmeliaBooking\Domain\Collection\Collection; |
| 6 | use AmeliaBooking\Infrastructure\Common\Container; |
| 7 | |
| 8 | /** |
| 9 | * Class AbstractResourceApplicationService |
| 10 | * |
| 11 | * @package AmeliaBooking\Application\Services\Resource |
| 12 | */ |
| 13 | abstract class AbstractResourceApplicationService |
| 14 | { |
| 15 | /** @var Container $container */ |
| 16 | protected $container; |
| 17 | |
| 18 | /** |
| 19 | * AbstractResourceApplicationService constructor. |
| 20 | * |
| 21 | * @param Container $container |
| 22 | */ |
| 23 | public function __construct(Container $container) |
| 24 | { |
| 25 | $this->container = $container; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * @param array $criteria |
| 30 | * |
| 31 | * @return Collection |
| 32 | */ |
| 33 | abstract public function getAll($criteria); |
| 34 | } |
| 35 |