mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-21 15:59:52 +01:00
Merge pull request #277 from nineinchnick/improve-pl-company
Improve pl company
This commit is contained in:
commit
126e846b76
@ -4,6 +4,29 @@ namespace Faker\Provider\pl_PL;
|
||||
|
||||
class Company extends \Faker\Provider\Company
|
||||
{
|
||||
protected static $formats = array(
|
||||
'{{lastName}}',
|
||||
'{{lastName}}',
|
||||
'{{lastName}} {{companySuffix}}',
|
||||
'{{lastName}} {{companySuffix}}',
|
||||
'{{lastName}} {{companySuffix}}',
|
||||
'{{lastName}} {{companySuffix}}',
|
||||
'{{companyPrefix}} {{lastName}}',
|
||||
'{{lastName}}-{{lastName}}',
|
||||
);
|
||||
|
||||
protected static $companySuffix = array('S.A.', 'i syn', 'sp. z o.o.', 'sp. j.', 'sp. p.', 'sp. k.', 'S.K.A', 's. c.', 'P.P.O.F');
|
||||
|
||||
protected static $companyPrefix = array('Grupa', 'Fundacja', 'Stowarzyszenie', 'Spółdzielnia');
|
||||
|
||||
/**
|
||||
* @example 'Grupa'
|
||||
*/
|
||||
public static function companyPrefix()
|
||||
{
|
||||
return static::randomElement(static::$companyPrefix);
|
||||
}
|
||||
|
||||
/*
|
||||
* Register of the National Economy
|
||||
* @link http://pl.wikipedia.org/wiki/REGON
|
||||
|
Loading…
x
Reference in New Issue
Block a user