1 | <?php |
||
20 | class PhantomJSHelper { |
||
21 | |||
22 | /** |
||
23 | * Service name. |
||
24 | * |
||
25 | * @avr string |
||
26 | */ |
||
27 | const SERVICE_NAME = "webeweb.core.helper.phantomjs"; |
||
28 | |||
29 | /** |
||
30 | * Binary path. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $binaryPath; |
||
35 | |||
36 | /** |
||
37 | * OutputPath. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $outputPath; |
||
42 | |||
43 | /** |
||
44 | * ScriptsPath. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | private $scriptsPath; |
||
49 | |||
50 | /** |
||
51 | * Constructor. |
||
52 | * |
||
53 | * @param string $binaryPath The binary path. |
||
54 | * @param string $scriptsPath The scripts path. |
||
55 | * @param string $outputPath The output path. |
||
56 | */ |
||
57 | public function __construct($binaryPath, $scriptsPath, $outputPath = null) { |
||
62 | |||
63 | /** |
||
64 | * Get the binary path. |
||
65 | * |
||
66 | * @return string Returns the binary path. |
||
67 | */ |
||
68 | public function getBinaryPath() { |
||
71 | |||
72 | /** |
||
73 | * Get the command. |
||
74 | * |
||
75 | * @return string Returns the command. |
||
76 | */ |
||
77 | public function getCommand() { |
||
90 | |||
91 | /** |
||
92 | * Get the output path. |
||
93 | * |
||
94 | * @return string Returns the output path. |
||
95 | */ |
||
96 | public function getOutputPath() { |
||
99 | |||
100 | /** |
||
101 | * Get the scriptsPath. |
||
102 | * |
||
103 | * @return string Returns the scriptsPath. |
||
104 | */ |
||
105 | public function getScriptsPath() { |
||
108 | |||
109 | /** |
||
110 | * Set the binary path. |
||
111 | * |
||
112 | * @param string $binaryPath The binary path. |
||
113 | * @return PhantomJSHelper Returns this PhantomJS helper. |
||
114 | */ |
||
115 | protected function setBinaryPath($binaryPath) { |
||
119 | |||
120 | /** |
||
121 | * Set the output path. |
||
122 | * |
||
123 | * @param string $outputPath The output path. |
||
124 | * @return PhantomJSHelper Returns this PhantomJS helper. |
||
125 | */ |
||
126 | protected function setOutputPath($outputPath) { |
||
130 | |||
131 | /** |
||
132 | * Set the scripts path. |
||
133 | * |
||
134 | * @param string $scriptsPath The scripts path. |
||
135 | * @return PhantomJSHelper Returns this PhantomJS helper. |
||
136 | */ |
||
137 | protected function setScriptsPath($scriptsPath) { |
||
141 | |||
142 | } |
||
143 |