| 1 | <?php |
||
| 9 | class AdapterFactory |
||
| 10 | { |
||
| 11 | const COLLECTION_ADAPTER = 'collection'; |
||
| 12 | const PAGINATION_ADAPTER = 'pagination'; |
||
| 13 | const ORDER_ADAPTER = 'order'; |
||
| 14 | const FILTER_ADAPTER = 'filter'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ContainerInterface |
||
| 18 | */ |
||
| 19 | private $container; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * AdapterFactory constructor. |
||
| 23 | * |
||
| 24 | * @param ContainerInterface $container |
||
| 25 | */ |
||
| 26 | public function __construct(ContainerInterface $container) { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $type |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | * |
||
| 35 | * @throws UnknownAdapterException |
||
| 36 | */ |
||
| 37 | public function getByType($type) : Adapter { |
||
| 51 | |||
| 52 | } |
||
| 53 |