1 | <?php |
||
12 | class RefundRequest extends AbstractPaypalRequest |
||
13 | { |
||
14 | /** |
||
15 | * @return string |
||
16 | */ |
||
17 | public function getEndpoint() |
||
27 | |||
28 | public function getHttpMethod() |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getType() |
||
40 | |||
41 | /** |
||
42 | * @param string $value |
||
43 | */ |
||
44 | public function setType($value) |
||
48 | |||
49 | /** |
||
50 | * @param mixed $data |
||
51 | * @return RefundResponse |
||
52 | */ |
||
53 | public function sendData($data) |
||
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getData() |
||
82 | } |
||
83 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: