From bed3caf3f6ee3e18af5e3cddfc9a077b45cc2480 Mon Sep 17 00:00:00 2001 From: AlexanderC Date: Mon, 28 Oct 2013 11:28:32 +0200 Subject: [PATCH 1/2] added ro_MD provider --- .idea/.name | 1 + .idea/Faker.iml | 9 + .idea/encodings.xml | 5 + .idea/misc.xml | 5 + .idea/modules.xml | 9 + .idea/scopes/scope_settings.xml | 5 + .idea/vcs.xml | 7 + .idea/workspace.xml | 370 +++++++++++++++++++++++ src/Faker/Provider/ro_MD/Address.php | 148 +++++++++ src/Faker/Provider/ro_MD/Person.php | 131 ++++++++ src/Faker/Provider/ro_MD/PhoneNumber.php | 33 ++ 11 files changed, 723 insertions(+) create mode 100644 .idea/.name create mode 100644 .idea/Faker.iml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/scopes/scope_settings.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 src/Faker/Provider/ro_MD/Address.php create mode 100644 src/Faker/Provider/ro_MD/Person.php create mode 100644 src/Faker/Provider/ro_MD/PhoneNumber.php diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 00000000..ea45cd03 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +Faker \ No newline at end of file diff --git a/.idea/Faker.iml b/.idea/Faker.iml new file mode 100644 index 00000000..6b8184f8 --- /dev/null +++ b/.idea/Faker.iml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 00000000..e206d70d --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..1162f438 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..a43ede76 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..c80f2198 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..6b852388 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1382950448070 + 1382950448070 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Faker/Provider/ro_MD/Address.php b/src/Faker/Provider/ro_MD/Address.php new file mode 100644 index 00000000..c1c56980 --- /dev/null +++ b/src/Faker/Provider/ro_MD/Address.php @@ -0,0 +1,148 @@ +generator->parse($format); + } + + public function address() + { + $format = static::randomElement(static::$addressFormats); + + return $this->generator->parse($format); + } + + public function streetAddress() + { + $format = static::randomElement(static::$streetAddressFormats); + + return $this->generator->parse($format); + } +} diff --git a/src/Faker/Provider/ro_MD/Person.php b/src/Faker/Provider/ro_MD/Person.php new file mode 100644 index 00000000..c8509d22 --- /dev/null +++ b/src/Faker/Provider/ro_MD/Person.php @@ -0,0 +1,131 @@ +generator->parse($format); + } + + /** + * @example 'Ion' + */ + public static function firstNameMale() + { + return static::randomElement(static::$firstNameMale); + } + + /** + * @example 'Maria' + */ + public static function firstNameFemale() + { + return static::randomElement(static::$firstNameFemale); + } + + /** + * @example 'Popescu' + */ + public static function lastName() + { + return static::randomElement(static::$lastName); + } + + public static function prefixMale() + { + return static::randomElement(static::$prefixMale); + } + + public static function prefixFemale() + { + return static::randomElement(static::$prefixFemale); + } +} diff --git a/src/Faker/Provider/ro_MD/PhoneNumber.php b/src/Faker/Provider/ro_MD/PhoneNumber.php new file mode 100644 index 00000000..e226f01a --- /dev/null +++ b/src/Faker/Provider/ro_MD/PhoneNumber.php @@ -0,0 +1,33 @@ + Date: Mon, 28 Oct 2013 11:29:12 +0200 Subject: [PATCH 2/2] added ro_MD provider --- .idea/.name | 1 - .idea/Faker.iml | 9 - .idea/encodings.xml | 5 - .idea/misc.xml | 5 - .idea/modules.xml | 9 - .idea/scopes/scope_settings.xml | 5 - .idea/vcs.xml | 7 - .idea/workspace.xml | 370 -------------------------------- 8 files changed, 411 deletions(-) delete mode 100644 .idea/.name delete mode 100644 .idea/Faker.iml delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/scopes/scope_settings.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index ea45cd03..00000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -Faker \ No newline at end of file diff --git a/.idea/Faker.iml b/.idea/Faker.iml deleted file mode 100644 index 6b8184f8..00000000 --- a/.idea/Faker.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index e206d70d..00000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 1162f438..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index a43ede76..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml deleted file mode 100644 index 922003b8..00000000 --- a/.idea/scopes/scope_settings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index c80f2198..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 6b852388..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1382950448070 - 1382950448070 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -