Skip to content

Commit

Permalink
EnderecoInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
netdragoon committed Dec 20, 2016
1 parent 6c80721 commit 3b55e67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Canducci/Cep/EnderecoInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class EnderecoInfo implements IEnderecoInfo
{
private $result;

private $status;

/**
Expand All @@ -20,28 +21,33 @@ public function __construct($result, $status)

}


/**
* @return mixed
*/
public function passed()
{

return !$this->status;

}

/**
* @return mixed
*/
public function isError()
{

return $this->status;

}

/**
* @return mixed
*/
public function result()
{

return $this->result;

}
}

0 comments on commit 3b55e67

Please sign in to comment.