1 | <?php |
||
8 | class RequestFactory implements RequestFactoryInterface |
||
9 | { |
||
10 | /** |
||
11 | * The AuthorizationHeaderInterface instance. |
||
12 | * |
||
13 | * @var \Risan\OAuth1\Request\AuthorizationHeaderInterface |
||
14 | */ |
||
15 | protected $authorizationHeader; |
||
16 | |||
17 | /** |
||
18 | * The UriParserInterface instance. |
||
19 | * |
||
20 | * @var \Risan\OAuth1\Request\UriParserInterface |
||
21 | */ |
||
22 | protected $uriParser; |
||
23 | |||
24 | /** |
||
25 | * Create the new instance of RequestFactory class. |
||
26 | * |
||
27 | * @param \Risan\OAuth1\Request\AuthorizationHeaderInterface $authorizationHeader |
||
28 | * @param \Risan\OAuth1\Request\UriParserInterface $uriParser |
||
29 | */ |
||
30 | 9 | public function __construct(AuthorizationHeaderInterface $authorizationHeader, UriParserInterface $uriParser) |
|
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | 1 | public function getAuthorizationHeader() |
|
43 | |||
44 | /** |
||
45 | * {@inheritDoc} |
||
46 | */ |
||
47 | 1 | public function getConfig() |
|
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | 1 | public function getUriParser() |
|
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | 1 | public function createForTemporaryCredentials() |
|
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | 1 | public function buildAuthorizationUri(TemporaryCredentials $temporaryCredentials) |
|
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | */ |
||
86 | 1 | public function createForTokenCredentials(TemporaryCredentials $temporaryCredentials, $verificationCode) |
|
97 | |||
98 | /** |
||
99 | * {@inheritDoc} |
||
100 | */ |
||
101 | 1 | public function createForProtectedResource(TokenCredentials $tokenCredentials, $method, $uri, array $options = []) |
|
109 | |||
110 | /** |
||
111 | * Create a new instance of Request class. |
||
112 | * |
||
113 | * @param string $method |
||
114 | * @param string $uri |
||
115 | * @param array $options [description] |
||
116 | * @return \Risan\OAuth1\Request\RequestInterface |
||
117 | */ |
||
118 | public function create($method, $uri, array $options = []) |
||
122 | } |
||
123 |