PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / trunk
Kubio AI Page Builder vtrunk
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / pt_BR / Company.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / pt_BR Last commit date
Address.php 1 year ago Company.php 1 year ago Internet.php 1 year ago Payment.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago check_digit.php 1 year ago
Company.php
34 lines
1 <?php
2
3 namespace Faker\Provider\pt_BR;
4
5 require_once "check_digit.php";
6
7 class Company extends \Faker\Provider\Company
8 {
9 protected static $formats = array(
10 '{{lastName}} {{companySuffix}}',
11 '{{lastName}}-{{lastName}}',
12 '{{lastName}} e {{lastName}}',
13 '{{lastName}} e {{lastName}} {{companySuffix}}',
14 '{{lastName}} Comercial Ltda.'
15 );
16
17 protected static $companySuffix = array('e Filhos', 'e Associados', 'Ltda.', 'S.A.');
18
19 /**
20 * A random CNPJ number.
21 * @link http://en.wikipedia.org/wiki/CNPJ
22 * @param bool $formatted If the number should have dots/slashes/dashes or not.
23 * @return string
24 */
25 public function cnpj($formatted = true)
26 {
27 $n = $this->generator->numerify('########0001');
28 $n .= check_digit($n);
29 $n .= check_digit($n);
30
31 return $formatted? vsprintf('%d%d.%d%d%d.%d%d%d/%d%d%d%d-%d%d', str_split($n)) : $n;
32 }
33 }
34