Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1537 from promatik/master
Browse files Browse the repository at this point in the history
Portuguese providers for Companies and Internet
  • Loading branch information
fzaninotto committed Nov 5, 2019
2 parents 674d89a + 9be9c58 commit c889210
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Faker/Provider/pt_PT/Company.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Faker\Provider\pt_PT;

class Company extends \Faker\Provider\Company
{
protected static $formats = array(
'{{lastName}} {{companySuffix}}',
'{{lastName}} {{lastName}}',
'{{lastName}} e {{lastName}}',
'{{lastName}} {{lastName}} {{companySuffix}}',
'Grupo {{lastName}} {{companySuffix}}'
);

protected static $companySuffix = array('e Filhos', 'e Associados', 'Lda.', 'S.A.');
}
9 changes: 9 additions & 0 deletions src/Faker/Provider/pt_PT/Internet.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Faker\Provider\pt_PT;

class Internet extends \Faker\Provider\Internet
{
protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com', 'sapo.pt', 'clix.pt', 'mail.pt');
protected static $tld = array('com', 'com', 'pt', 'pt', 'net', 'org', 'eu');
}

0 comments on commit c889210

Please sign in to comment.