1 | <?php |
||
19 | trait InputTrait |
||
20 | { |
||
21 | /** |
||
22 | * Cookies. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | private $cookies = [ |
||
27 | 'add' => [], |
||
28 | 'remove' => [], |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * Settings. |
||
33 | * |
||
34 | * (default value: []) |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | private $settings = []; |
||
39 | |||
40 | /** |
||
41 | * Custom input settings. |
||
42 | * |
||
43 | * (default value: []) |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | private $custom = []; |
||
48 | |||
49 | /** |
||
50 | * Create new input with |
||
51 | * added custom setting. |
||
52 | * |
||
53 | * @param string $name |
||
54 | * @param mixed $value |
||
55 | * |
||
56 | * @return \JonnyW\PhantomJs\IO\InputInterface |
||
57 | */ |
||
58 | public function withCustom($name, $value) |
||
65 | |||
66 | /** |
||
67 | * Create new input with |
||
68 | * custom setting removed. |
||
69 | * |
||
70 | * @param string $name |
||
71 | * |
||
72 | * @return \JonnyW\PhantomJs\IO\InputInterface |
||
73 | */ |
||
74 | public function withoutCustom($name) |
||
82 | |||
83 | /** |
||
84 | * Get custom setting. |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | public function getCustom() |
||
92 | |||
93 | /** |
||
94 | * Get all cookies. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | public function getCookies() |
||
102 | |||
103 | /** |
||
104 | * Create new input with |
||
105 | * added cookie. |
||
106 | * |
||
107 | * @param \JonnyW\PhantomJs\Page\Cookie $cookie |
||
108 | * |
||
109 | * @return \JonnyW\PhantomJs\IO\InputInterface |
||
110 | */ |
||
111 | public function withCookie(Cookie $cookie) |
||
118 | |||
119 | /** |
||
120 | * Create new input with cookie |
||
121 | * removed and flagged for delete. |
||
122 | * |
||
123 | * @param string $cookie |
||
124 | * |
||
125 | * @return \JonnyW\PhantomJs\IO\InputInterface |
||
126 | */ |
||
127 | public function withoutCookie($cookie) |
||
136 | |||
137 | /** |
||
138 | * Get all settings. |
||
139 | * |
||
140 | * @return array |
||
141 | */ |
||
142 | public function getSettings() |
||
146 | |||
147 | /** |
||
148 | * Create new input with |
||
149 | * added setting. |
||
150 | * |
||
151 | * @param string $setting |
||
152 | * @param mixed $value |
||
153 | * |
||
154 | * @return \JonnyW\PhantomJs\IO\InputInterface |
||
155 | */ |
||
156 | public function withSetting($setting, $value) |
||
163 | |||
164 | /** |
||
165 | * Create new input with setting |
||
166 | * removed. |
||
167 | * |
||
168 | * @param string $setting |
||
169 | * |
||
170 | * @return \JonnyW\PhantomJs\IO\InputInterface |
||
171 | */ |
||
172 | public function withoutSetting($setting) |
||
180 | } |
||
181 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.