AbstractFaker
Namespace
IO\Services\ItemSearch\Factories\Faker
Type | Name | Value | Description |
---|---|---|---|
|
['german','english','french','bulgarian','italian','spanish','turkish','dutch','portuguese','norwegian','romanian','danish','swedish','czech','russian'] |
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
public __construct()
public fill($data)
Type |
Name |
Description |
|
public rand($values)
Type |
Name |
Description |
|
public global()
public static resetGlobals()
public merge($object, $defaults)
Recursively merge values into an existing array
Type |
Name |
Description |
|
The original object to merge values into |
|
|
The values to be merged into the original object if not set |
public get($arr, $field):mixed
Get a nested value from an array by its path (e.g. "path.to.property")
Type |
Name |
Description |
|
The array to get the nested value from |
|
|
The path to the property to read |
public isDefined($arr, $field):bool
Check if a nested property is defined in an array
Type |
Name |
Description |
|
The array to search the nested property in |
|
|
The path to the property to check |
public hasAny($arr, $field, $key, $value):bool
Check if any entry of a list has a specific value.
Type |
Name |
Description |
|
The object containing the list to check entries in |
|
|
The path to the list inside the object to check entries |
|
|
Key inside each list entry to check |
|
|
Expected value of each entry |
public number()
public float()
public percentage()
public text()
public word()
public trans()
public serial()
public hash()
public url()
public hexColor()
public timestamp()
public dateString($format = "Y-m-d H:i:s")
Type |
Name |
Description |
|
public boolean()
public shopLanguage($skipActiveLang = false)
Type |
Name |
Description |
|
public image()
public country()
public unit()