This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #504 from drakakisgeo/master
Created el_GR files for Company address
- Loading branch information
Showing
2 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php namespace Faker\Provider\el_GR; | ||
|
||
class Company extends \Faker\Provider\Company | ||
{ | ||
protected static $companySuffix = array( | ||
'Ο.Ε', | ||
'Ε.Ε', | ||
'Α.Ε', | ||
'Ε.Π.Ε' | ||
); | ||
|
||
protected static $companyFormats = array( | ||
'{{lastName}} {{firstName}} {{companySuffix}}', | ||
'{{lastName}}-{{firstName}}' | ||
); | ||
|
||
protected static $grafm = array('#########'); | ||
|
||
|
||
protected static $doy = array( | ||
'Α\' Αθήνας', | ||
'Β\' Αθήνας', | ||
'Γ\' Αθήνας', | ||
'ΣΤ\' Αθήνας', | ||
'Γαλάτσιου', | ||
'Α\' Πειραιά', | ||
'Β\' Πειραιά', | ||
'Γ\' Πειραιά', | ||
'Α\' Θεσσαλονίκης', | ||
'Β\' Θεσσαλονίκης', | ||
'Γλυφάδας', | ||
'Ωροπού', | ||
'Καλιθέας', | ||
'Αγίου Δημητρίου', | ||
'Νέας Σμύρνης', | ||
'Αμαρουσίου', | ||
'Θήρας', | ||
'Αμοργού', | ||
'Πατρών', | ||
'ΔΟΥ ΠΛΟΙΩΝ', | ||
'ΦΑΕΕ ΑΘΗΝΩΝ' | ||
); | ||
|
||
|
||
protected static $οbject = array( | ||
'Προγραμματιστής', | ||
'Δικηγόρος', | ||
'Γιατρός', | ||
'Γραφίστας', | ||
'Αρχαιολόγος', | ||
'Εκπαιδευτικός', | ||
'Μεταφραστής', | ||
'Μηχανολόγος-μηχανικός', | ||
'Αρχιτέκτονας', | ||
'Δημοσιογράφος', | ||
'Υπηρεσίες Διαδικτύου', | ||
'Ραδιοφωνικές παραγωγές', | ||
'Καραγκιοζοπαίχτης', | ||
'Κουλουράς', | ||
'Κομπάρσος', | ||
'Καλλιτεχνικός πράκτορας', | ||
'Εισαγωγαί-εξαγωγαί', | ||
'Ωρολογοποιός', | ||
'Καθεκλοποιός', | ||
); | ||
|
||
/** | ||
* @example 'Αθήνας' | ||
*/ | ||
public static function doy() | ||
{ | ||
return static::randomElement(static::$doy); | ||
} | ||
|
||
/** | ||
* Return The profession of a company | ||
* | ||
* @example 'Δημοσιογράφος' | ||
*/ | ||
public static function object() | ||
{ | ||
return static::randomElement(static::$οbject); | ||
} | ||
} |