diff --git a/src/Canducci/Cep/EnderecoInfo.php b/src/Canducci/Cep/EnderecoInfo.php index 2ff8253..1d9b751 100644 --- a/src/Canducci/Cep/EnderecoInfo.php +++ b/src/Canducci/Cep/EnderecoInfo.php @@ -5,6 +5,7 @@ class EnderecoInfo implements IEnderecoInfo { private $result; + private $status; /** @@ -20,13 +21,14 @@ public function __construct($result, $status) } - /** * @return mixed */ public function passed() { + return !$this->status; + } /** @@ -34,7 +36,9 @@ public function passed() */ public function isError() { + return $this->status; + } /** @@ -42,6 +46,8 @@ public function isError() */ public function result() { + return $this->result; + } } \ No newline at end of file