1 | <?php |
||
14 | final class HappyrClient |
||
15 | { |
||
16 | /** |
||
17 | * @var HttpClient |
||
18 | */ |
||
19 | private $httpClient; |
||
20 | |||
21 | /** |
||
22 | * @var Hydrator |
||
23 | */ |
||
24 | private $hydrator; |
||
25 | |||
26 | /** |
||
27 | * @var RequestFactory |
||
28 | */ |
||
29 | private $requestFactory; |
||
30 | |||
31 | /** |
||
32 | * The constructor accepts already configured HTTP clients. |
||
33 | * Use the configure method to pass a configuration to the Client and create an HTTP Client. |
||
34 | * |
||
35 | * @param HttpClient $httpClient |
||
36 | * @param Hydrator|null $hydrator |
||
37 | * @param RequestFactory|null $requestFactory |
||
38 | */ |
||
39 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * @param HttpClientConfigurator $httpClientConfigurator |
||
51 | * @param Hydrator|null $hydrator |
||
52 | * @param RequestFactory|null $requestFactory |
||
53 | * |
||
54 | * @return HappyrClient |
||
55 | */ |
||
56 | public static function configure( |
||
65 | |||
66 | /** |
||
67 | * @param string $identifier |
||
68 | * @param string $secret |
||
69 | * |
||
70 | * @return HappyrClient |
||
71 | */ |
||
72 | public static function create($identifier, $secret) |
||
78 | |||
79 | /** |
||
80 | * @return Api\Interview |
||
81 | */ |
||
82 | public function interview() |
||
86 | |||
87 | /** |
||
88 | * @return Api\Dimension |
||
89 | */ |
||
90 | public function dimensions() |
||
94 | |||
95 | /** |
||
96 | * @return Api\Match |
||
97 | */ |
||
98 | public function match() |
||
102 | |||
103 | /** |
||
104 | * @return Api\Norm |
||
105 | */ |
||
106 | public function norm() |
||
110 | |||
111 | /** |
||
112 | * @return Api\ProfilePattern |
||
113 | */ |
||
114 | public function profilePattern() |
||
118 | |||
119 | /** |
||
120 | * @return Api\Statement |
||
121 | */ |
||
122 | public function statement() |
||
126 | |||
127 | /** |
||
128 | * @return Api\UserManagement |
||
129 | */ |
||
130 | public function userManagement() |
||
134 | } |
||
135 |