1
0

Fixed bugs + testing

This commit is contained in:
2017-02-19 12:24:32 +01:00
parent 8ea09dde35
commit 807384620c
7 changed files with 38 additions and 8 deletions

View File

@ -12,13 +12,13 @@ abstract class AbstractResponse extends BaseAbstractResponse
public function __construct(RequestInterface $request, $data)
{
parent::__construct($request, $data);
if (!$this->data->success) {
$this->error = (string) $this->data->error;
if (!$this->data['success']) {
$this->error = (string) $this->data['error'];
}
}
public function getError()
{
return $this->error;
return $this['error'];
}
}