LeKoala\DevToolkit\FakeDataProvider
Provide fake data for random record generation
Synopsis
class FakeDataProvider
{
- // members
- protected static string $folder = 'Faker';
- protected static float $latitude = 50.7802;
- protected static float $longitude = 4.4269;
- protected static array $firstNames = ;
- protected static array $lastNames = ;
- protected static array $addresses = ;
- protected static array $domains = ;
- protected static array $words = ;
- // methods
- public static string firstname()
- public static string lastname()
- public static string name()
- public static bool boolean()
- public static array address()
- public static string addressPart()
- public static float fprand()
- public static array latLon()
- public static string domain()
- public static string website()
- public static void adorableAvatar()
- public static array randomUser()
- public static Image storeFakeImage()
- public static Image image()
- public static Image ownImage()
- public static DataObject record()
- public static string words()
- public static string sentences()
- public static string paragraphs()
- public static string date()
- public static string male_or_female()
- public static array pick()
- public static string country()
- public static string countryCode()
Members
protected
- $addresses
- $domains
- $firstNames
- $folder
- $lastNames
- $latitude
- $longitude
- $words
Methods
public
- address() — A random address
- addressPart() — A random address part
- adorableAvatar()
- boolean() — A random boolean
- country() — Get a random country
- countryCode() — Get a random country code
- date() — Get a date between two dates
- domain() — A random domain
- firstname() — A random firstname
- fprand() — Random float point value
- image() — Get a random image
- lastname() — A random lastname
- latLon() — A randomized position
- male_or_female() — Male or female
- name() — A random name
- ownImage() — Get a random image unique for a record that can be deleted without side effects for other records
- paragraphs() — Get random paragraphs
- pick() — Randomly pick in an array
- randomUser() — Generate some random users
- record() — Get a random record
- sentences() — Get random sentences
- storeFakeImage() — Store a fake image
- website() — A random website
- words() — Get random words