Skip to content

Commit

Permalink
Criado objeto pivot, visando facilitar o uso do componente, onde o us…
Browse files Browse the repository at this point in the history
…uário instanciará apenas um objeto e poderá acessar os recursos de cpf e cnpj. Deixando em aberto a possibildiade de novas implementações.
  • Loading branch information
Diego-Brocanelli committed Dec 31, 2020
1 parent 14383b2 commit bcd1186
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Faker.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace Random;

use Random\CPF;
use Random\CNPJ;

/**
* @author Diego Brocanelli <contato@diegobrocanelli.com.br>
*/
class Faker
{
public function cpf(): CPF
{
return new CPF();
}

public function cnpj(): CNPJ
{
return new CNPJ();
}
}

0 comments on commit bcd1186

Please sign in to comment.