1
0
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:
Francois Zaninotto 2019-11-05 08:55:52 +01:00 committed by GitHub
commit c889210737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View 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.');
}

View 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');
}