1 | <?php |
||
11 | class Handler |
||
12 | { |
||
13 | protected $options = array(); |
||
14 | protected $browser; |
||
15 | |||
16 | /** |
||
17 | * Constructor |
||
18 | * |
||
19 | * @param array $options |
||
20 | */ |
||
21 | public function __construct(array $options = array()) |
||
29 | |||
30 | /** |
||
31 | * Set our default options. |
||
32 | * |
||
33 | * @param OptionsResolver $resolver |
||
34 | */ |
||
35 | protected function setDefaultOptions(OptionsResolver $resolver) |
||
61 | |||
62 | /** |
||
63 | * Initialise |
||
64 | */ |
||
65 | protected function init() |
||
76 | |||
77 | /** |
||
78 | * Submit a request to the API. |
||
79 | * |
||
80 | * @param RequestInterface $request |
||
81 | * @return object |
||
82 | */ |
||
83 | public function submit(RequestInterface $request) |
||
92 | |||
93 | /** |
||
94 | * Get the transport handler, currently only Buzz. |
||
95 | * |
||
96 | * @return Buzz\Browser |
||
97 | */ |
||
98 | public function getTransport() |
||
102 | } |
||
103 |