| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?php
- /*
- * This file is part of the php-phantomjs.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace JonnyW\PhantomJs;
- use JonnyW\PhantomJs\Message\RequestInterface;
- use JonnyW\PhantomJs\Message\ResponseInterface;
- /**
- * PHP PhantomJs
- *
- * @author Jon Wenmoth <contact@jonnyw.me>
- */
- interface ClientInterface
- {
- /**
- * Get singleton instance
- *
- * @access public
- * @return \JonnyW\PhantomJs\ClientInterface
- */
- public static function getInstance();
- /**
- * Get message factory instance
- *
- * @access public
- * @return \JonnyW\PhantomJs\Message\FactoryInterface
- */
- public function getMessageFactory();
- /**
- * Send request
- *
- * @access public
- * @param \JonnyW\PhantomJs\Message\RequestInterface $request
- * @param \JonnyW\PhantomJs\Message\ResponseInterface $response
- */
- public function send(RequestInterface $request, ResponseInterface $response);
- /**
- * Set new PhantomJs executable path.
- *
- * @access public
- * @param string $path
- */
- public function setPhantomJs($path);
- /**
- * Get PhantomJs executable path.
- *
- * @access public
- * @return string
- */
- public function getPhantomJs();
- /**
- * Set PhantomJs loader executable path.
- *
- * @access public
- * @param string $path
- */
- public function setPhantomLoader($path);
- /**
- * Get PhantomJs loader executable path.
- *
- * @access public
- * @return string
- */
- public function getPhantomLoader();
- /**
- * Set PhantomJs run options.
- *
- * @access public
- * @param array $options
- */
- public function setOptions(array $options);
- /**
- * Get PhantomJs run options.
- *
- * @access public
- * @return array
- */
- public function getOptions();
- /**
- * Add single PhantomJs run option.
- *
- * @access public
- * @param string $option
- */
- public function addOption($option);
- /**
- * Debug.
- *
- * @access public
- * @param boolean $doDebug
- */
- public function debug($doDebug);
- /**
- * Set log info.
- *
- * @access public
- * @param string $info
- */
- public function setLog($info);
- /**
- * Get log info.
- *
- * @access public
- * @return string
- */
- public function getLog();
- /**
- * Clear log info.
- *
- * @access public
- */
- public function clearLog();
- }
|