51 lines
1 KiB
YAML
51 lines
1 KiB
YAML
name: WithFaker
|
|
class_comment: null
|
|
dependencies:
|
|
- name: Factory
|
|
type: class
|
|
source: Faker\Factory
|
|
- name: Generator
|
|
type: class
|
|
source: Faker\Generator
|
|
properties:
|
|
- name: faker
|
|
visibility: protected
|
|
comment: '# * The Faker instance.
|
|
|
|
# *
|
|
|
|
# * @var \Faker\Generator'
|
|
methods:
|
|
- name: setUpFaker
|
|
visibility: protected
|
|
parameters: []
|
|
comment: "# * The Faker instance.\n# *\n# * @var \\Faker\\Generator\n# */\n# protected\
|
|
\ $faker;\n# \n# /**\n# * Setup up the Faker instance.\n# *\n# * @return void"
|
|
- name: faker
|
|
visibility: protected
|
|
parameters:
|
|
- name: locale
|
|
default: 'null'
|
|
comment: '# * Get the default Faker instance for a given locale.
|
|
|
|
# *
|
|
|
|
# * @param string|null $locale
|
|
|
|
# * @return \Faker\Generator'
|
|
- name: makeFaker
|
|
visibility: protected
|
|
parameters:
|
|
- name: locale
|
|
default: 'null'
|
|
comment: '# * Create a Faker instance for the given locale.
|
|
|
|
# *
|
|
|
|
# * @param string|null $locale
|
|
|
|
# * @return \Faker\Generator'
|
|
traits:
|
|
- Faker\Factory
|
|
- Faker\Generator
|
|
interfaces: []
|