mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Merge pull request #1537 from promatik/master
Portuguese providers for Companies and Internet
This commit is contained in:
commit
c889210737
16
src/Faker/Provider/pt_PT/Company.php
Normal file
16
src/Faker/Provider/pt_PT/Company.php
Normal file
@ -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
src/Faker/Provider/pt_PT/Internet.php
Normal file
9
src/Faker/Provider/pt_PT/Internet.php
Normal file
@ -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');
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user