1 | <?php |
||
12 | abstract class AbstractAdapter implements Adapter |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var ParserFactory |
||
17 | */ |
||
18 | protected $parserFactory; |
||
19 | |||
20 | /** |
||
21 | * Construct the adapter and set the parser factory variable. |
||
22 | * |
||
23 | * @see \Brendt\Stitcher\Factory\ParserFactory |
||
24 | */ |
||
25 | public function __construct() { |
||
28 | |||
29 | /** |
||
30 | * @param Page|Page[] $pages |
||
31 | * @param mixed $filter |
||
32 | * |
||
33 | * @return Page[] |
||
34 | */ |
||
35 | public function transform($pages, $filter = null) : array { |
||
49 | |||
50 | /** |
||
51 | * This function will get the parser based on the value provided. |
||
52 | * This value is parsed by the parser, or returned if no suitable parser was found. |
||
53 | * |
||
54 | * @param $value |
||
55 | * |
||
56 | * @return mixed |
||
57 | * |
||
58 | * @see \Brendt\Stitcher\Factory\ParserFactory |
||
59 | */ |
||
60 | protected function getData($value) { |
||
69 | |||
70 | } |
||
71 |