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

Commit c889210

Browse files
authored
Merge pull request #1537 from promatik/master
Portuguese providers for Companies and Internet
2 parents 674d89a + 9be9c58 commit c889210

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/Faker/Provider/pt_PT/Company.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Faker\Provider\pt_PT;
4+
5+
class Company extends \Faker\Provider\Company
6+
{
7+
protected static $formats = array(
8+
'{{lastName}} {{companySuffix}}',
9+
'{{lastName}} {{lastName}}',
10+
'{{lastName}} e {{lastName}}',
11+
'{{lastName}} {{lastName}} {{companySuffix}}',
12+
'Grupo {{lastName}} {{companySuffix}}'
13+
);
14+
15+
protected static $companySuffix = array('e Filhos', 'e Associados', 'Lda.', 'S.A.');
16+
}

src/Faker/Provider/pt_PT/Internet.php

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Faker\Provider\pt_PT;
4+
5+
class Internet extends \Faker\Provider\Internet
6+
{
7+
protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com', 'sapo.pt', 'clix.pt', 'mail.pt');
8+
protected static $tld = array('com', 'com', 'pt', 'pt', 'net', 'org', 'eu');
9+
}

0 commit comments

Comments
 (0)