PHP Class Faker\Provider\fr_FR\Company

Inheritance: extends Faker\Provider\Company
Afficher le fichier Open project: fzaninotto/faker Class Usage Examples

Protected Properties

Свойство Type Description
$attribute End of sentences (used by the catch phrase format).
$catchPhraseFormats French catch phrase formats.
$companySuffix Company suffixes.
$formats French company name formats.
$jobTitleFormat
$noun French nouns (used by the catch phrase format).
$siretNicFormats
$verb French verbs (used by the catch phrase format).
$wordsWhichShouldNotAppearTwice An array containing string which should not appear twice in a catch phrase.

Méthodes publiques

Méthode Description
catchPhrase ( ) : string Generates a french catch phrase.
catchPhraseAttribute ( ) : string Returns a random catch phrase attribute.
catchPhraseNoun ( ) : string Returns a random catch phrase noun.
catchPhraseVerb ( ) : string Returns a random catch phrase verb.
siren ( $formatted = true ) : string Generates a siren number (9 digits) that passes the Luhn check.
siret ( $formatted = true ) : string Generates a siret number (14 digits) that passes the Luhn check.

Méthodes protégées

Méthode Description
isCatchPhraseValid ( string $catchPhrase ) : boolean Validates a french catch phrase.

Method Details

catchPhrase() public méthode

Generates a french catch phrase.
public catchPhrase ( ) : string
Résultat string

catchPhraseAttribute() public méthode

Returns a random catch phrase attribute.
public catchPhraseAttribute ( ) : string
Résultat string

catchPhraseNoun() public méthode

Returns a random catch phrase noun.
public catchPhraseNoun ( ) : string
Résultat string

catchPhraseVerb() public méthode

Returns a random catch phrase verb.
public catchPhraseVerb ( ) : string
Résultat string

isCatchPhraseValid() protected static méthode

Validates a french catch phrase.
protected static isCatchPhraseValid ( string $catchPhrase ) : boolean
$catchPhrase string The catch phrase to validate.
Résultat boolean (true if valid, false otherwise)

siren() public méthode

Generates a siren number (9 digits) that passes the Luhn check.
See also: http://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_entreprises
public siren ( $formatted = true ) : string
Résultat string

siret() public méthode

Generates a siret number (14 digits) that passes the Luhn check.
See also: http://fr.wikipedia.org/wiki/Syst%C3%A8me_d'identification_du_r%C3%A9pertoire_des_%C3%A9tablissements
public siret ( $formatted = true ) : string
Résultat string

Property Details

$attribute protected_oe static_oe property

End of sentences (used by the catch phrase format).
protected static $attribute

$catchPhraseFormats protected_oe static_oe property

French catch phrase formats.
protected static $catchPhraseFormats

$companySuffix protected_oe static_oe property

Company suffixes.
protected static $companySuffix

$formats protected_oe static_oe property

French company name formats.
protected static $formats

$jobTitleFormat protected_oe static_oe property

protected static $jobTitleFormat

$noun protected_oe static_oe property

French nouns (used by the catch phrase format).
protected static $noun

$siretNicFormats protected_oe static_oe property

protected static $siretNicFormats

$verb protected_oe static_oe property

French verbs (used by the catch phrase format).
protected static $verb

$wordsWhichShouldNotAppearTwice protected_oe static_oe property

An array containing string which should not appear twice in a catch phrase.
protected static $wordsWhichShouldNotAppearTwice