| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Glide |
||
| 14 | { |
||
| 15 | protected $server; |
||
| 16 | protected $filters; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Glide constructor. |
||
| 20 | * |
||
| 21 | * @param array $config |
||
| 22 | * @param array $filters |
||
| 23 | */ |
||
| 24 | public function __construct(array $config, array $filters) |
||
| 25 | { |
||
| 26 | $this->server = ServerFactory::create( |
||
| 27 | [ |
||
| 28 | 'response' => new SymfonyResponseFactory(), |
||
| 29 | 'source' => $config['source'], |
||
| 30 | 'cache' => $config['cache'], |
||
| 31 | ] |
||
| 32 | ); |
||
| 33 | $this->filters = $filters; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return Server |
||
| 38 | */ |
||
| 39 | public function getServer(): Server |
||
| 40 | { |
||
| 41 | return $this->server; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function getFilters(): array |
||
| 50 | } |
||
| 51 | } |
||
| 52 |