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

Portuguese providers for Companies and Internet #1537

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
}