File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the Http Adapter package.
5+ *
6+ * (c) Eric GELOEN <geloen.eric@gmail.com>
7+ *
8+ * For the full copyright and license information, please read the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ namespace Http \Adapter ;
13+
14+ /**
15+ * Allows global configurations
16+ *
17+ * @author Márk Sági-Kazár mark.sagikazar@gmail.com>
18+ */
19+ interface Configurable
20+ {
21+ /**
22+ * Returns a sepcific option or null
23+ *
24+ * @param string $name
25+ *
26+ * @return mixed
27+ */
28+ public function getOption ($ name );
29+
30+ /**
31+ * Returns all options
32+ *
33+ * @return array
34+ */
35+ public function getOptions ();
36+
37+ /**
38+ * Checks if an option is set
39+ *
40+ * @param string $name
41+ *
42+ * @return boolean
43+ */
44+ public function hasOption ($ name );
45+
46+ /**
47+ * Sets an option
48+ *
49+ * @param string $name
50+ * @param mixed $option
51+ */
52+ public function setOption ($ name , $ option );
53+
54+ /**
55+ * Sets all options
56+ *
57+ * @param array $options
58+ */
59+ public function setOptions ($ options );
60+ }
Original file line number Diff line number Diff line change 1616use Psr \Http \Message \ResponseInterface ;
1717
1818/**
19+ * Allows request level configurations
20+ *
1921 * @author Márk Sági-Kazár mark.sagikazar@gmail.com>
2022 */
2123interface ConfigurableHttpAdapter extends HttpAdapter
You can’t perform that action at this time.
0 commit comments