1 | <?php |
||
33 | abstract class Payone_Api_Mapper_Response_Abstract extends Payone_Api_Mapper_Abstract |
||
|
|||
34 | { |
||
35 | // @todo hs: Introduce constants for the various status´ , where? Settings? |
||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $params = null; |
||
40 | |||
41 | /** |
||
42 | * @return bool |
||
43 | */ |
||
44 | protected function isApproved() |
||
53 | |||
54 | protected function isPending() |
||
63 | |||
64 | /** |
||
65 | * @return bool |
||
66 | */ |
||
67 | protected function isRedirect() |
||
76 | |||
77 | /** |
||
78 | * @return bool |
||
79 | */ |
||
80 | protected function isValid() |
||
89 | |||
90 | /** |
||
91 | * @return bool |
||
92 | */ |
||
93 | protected function isInvalid() |
||
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | protected function isBlocked() |
||
115 | |||
116 | /** |
||
117 | * @return bool |
||
118 | */ |
||
119 | protected function isEnrolled() |
||
128 | |||
129 | /** |
||
130 | * @return bool |
||
131 | */ |
||
132 | protected function isError() |
||
141 | |||
142 | /** |
||
143 | * @return bool |
||
144 | */ |
||
145 | protected function isOk() |
||
154 | |||
155 | /** |
||
156 | * @param array $responseRaw |
||
157 | */ |
||
158 | protected function setParams($responseRaw) |
||
162 | |||
163 | /** |
||
164 | * @return array |
||
165 | */ |
||
166 | protected function getParams() |
||
170 | |||
171 | /** |
||
172 | * @param $key |
||
173 | * @return mixed |
||
174 | */ |
||
175 | protected function getParam($key) |
||
185 | } |
||
186 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.