PHP Класс Faker\Provider\fr_FR\Company

Наследование: extends Faker\Provider\Company
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
isCatchPhraseValid ( string $catchPhrase ) : boolean Validates a french catch phrase.

Описание методов

catchPhrase() публичный Метод

Generates a french catch phrase.
public catchPhrase ( ) : string
Результат string

catchPhraseAttribute() публичный Метод

Returns a random catch phrase attribute.
public catchPhraseAttribute ( ) : string
Результат string

catchPhraseNoun() публичный Метод

Returns a random catch phrase noun.
public catchPhraseNoun ( ) : string
Результат string

catchPhraseVerb() публичный Метод

Returns a random catch phrase verb.
public catchPhraseVerb ( ) : string
Результат string

isCatchPhraseValid() защищенный статический Метод

Validates a french catch phrase.
protected static isCatchPhraseValid ( string $catchPhrase ) : boolean
$catchPhrase string The catch phrase to validate.
Результат boolean (true if valid, false otherwise)

siren() публичный Метод

Generates a siren number (9 digits) that passes the Luhn check.
См. также: http://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27identification_du_r%C3%A9pertoire_des_entreprises
public siren ( $formatted = true ) : string
Результат string

siret() публичный Метод

Generates a siret number (14 digits) that passes the Luhn check.
См. также: http://fr.wikipedia.org/wiki/Syst%C3%A8me_d'identification_du_r%C3%A9pertoire_des_%C3%A9tablissements
public siret ( $formatted = true ) : string
Результат string

Описание свойств

$attribute защищенное статическое свойство

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

$catchPhraseFormats защищенное статическое свойство

French catch phrase formats.
protected static $catchPhraseFormats

$companySuffix защищенное статическое свойство

Company suffixes.
protected static $companySuffix

$formats защищенное статическое свойство

French company name formats.
protected static $formats

$jobTitleFormat защищенное статическое свойство

protected static $jobTitleFormat

$noun защищенное статическое свойство

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

$siretNicFormats защищенное статическое свойство

protected static $siretNicFormats

$verb защищенное статическое свойство

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

$wordsWhichShouldNotAppearTwice защищенное статическое свойство

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