1 | <?php |
||
22 | class ProcedureFactory implements ProcedureFactoryInterface |
||
23 | { |
||
24 | /** |
||
25 | * PhantomJS engine |
||
26 | * |
||
27 | * @var \JonnyW\PhantomJs\Engine |
||
28 | * @access protected |
||
29 | */ |
||
30 | protected $engine; |
||
31 | |||
32 | /** |
||
33 | * Parser. |
||
34 | * |
||
35 | * @var \JonnyW\PhantomJs\Parser\ParserInterface |
||
36 | * @access protected |
||
37 | */ |
||
38 | protected $parser; |
||
39 | |||
40 | /** |
||
41 | * Cache handler. |
||
42 | * |
||
43 | * @var \JonnyW\PhantomJs\Cache\CacheInterface |
||
44 | * @access protected |
||
45 | */ |
||
46 | protected $cacheHandler; |
||
47 | |||
48 | /** |
||
49 | * Template renderer. |
||
50 | * |
||
51 | * @var \JonnyW\PhantomJs\Template\TemplateRendererInterface |
||
52 | * @access protected |
||
53 | */ |
||
54 | protected $renderer; |
||
55 | |||
56 | /** |
||
57 | * Internal constructor. |
||
58 | * |
||
59 | * @access public |
||
60 | * @param \JonnyW\PhantomJs\Engine $engine |
||
61 | * @param \JonnyW\PhantomJs\Parser\ParserInterface $parser |
||
62 | * @param \JonnyW\PhantomJs\Cache\CacheInterface $cacheHandler |
||
63 | * @param \JonnyW\PhantomJs\Template\TemplateRendererInterface $renderer |
||
64 | */ |
||
65 | public function __construct(Engine $engine, ParserInterface $parser, CacheInterface $cacheHandler, TemplateRendererInterface $renderer) |
||
72 | |||
73 | /** |
||
74 | * Create new procedure instance. |
||
75 | * |
||
76 | * @access public |
||
77 | * @return \JonnyW\PhantomJs\Procedure\Procedure |
||
78 | */ |
||
79 | public function createProcedure() |
||
90 | } |
||
91 |