1 | <?php |
||
20 | class Dialogue |
||
21 | { |
||
22 | /** docomo側エンドポイントURL */ |
||
23 | const END_POINT_URL = 'https://api.apigw.smt.docomo.ne.jp/dialogue/v1/dialogue'; |
||
24 | |||
25 | /** @internal @var string */ |
||
26 | private $apikey; |
||
27 | |||
28 | /** @internal @var RequestParameter */ |
||
29 | private $request; |
||
30 | |||
31 | /** |
||
32 | * コンストラクタ |
||
33 | * |
||
34 | * @param string $apikey docomo API Key |
||
35 | */ |
||
36 | public function __construct($apikey) |
||
40 | |||
41 | /** |
||
42 | * マジックメソッド __get |
||
43 | * |
||
44 | * @param string $key プロパティ名 |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function __get($key) |
||
56 | |||
57 | /** |
||
58 | * 送信パラメータ管理クラスを取得 |
||
59 | * |
||
60 | * @return RequestParameter |
||
61 | */ |
||
62 | public function getParameter() |
||
69 | |||
70 | /** |
||
71 | * docomoへリクエストを送信し、対話内容を得る |
||
72 | * |
||
73 | * @return Response|false |
||
74 | */ |
||
75 | public function request() |
||
89 | |||
90 | /** |
||
91 | * クラス名(FQCN)を取得 |
||
92 | * |
||
93 | * return string |
||
94 | */ |
||
95 | public static function className() |
||
99 | } |
||
100 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: