diff --git a/README.md b/README.md index 400dc06..d67cf4d 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ catch (InvalidDocumentException $e){ echo $e->getMessage(); } ``` + ### PIS/PASEP (programa de integração social e programa de formação do patrimônio do servidor público) Social Integration Program and Training Program of the Heritage of Public Servant @@ -134,6 +135,24 @@ catch (InvalidDocumentException $e){ } ``` +### Título de Eleitor + +Voter Registration + +```php +use Brazanation\Documents\Voter; +use Brazanation\Documents\Exception\InvalidDocument as InvalidDocumentException; + +try { + $pispasep = new Voter('106644440302', 20, 42); + echo $pispasep; // prints 106644440302 + echo $pispasep->getSection(); // prints 0020 + echo $pispasep->getZone(); // prints 042 +catch (InvalidDocumentException $e){ + echo $e->getMessage(); +} +``` + ### License MIT, hell yeah!