update inbox list
This commit is contained in:
126
vendor/fzaninotto/faker/src/Faker/Provider/en_SG/Address.php
vendored
Normal file
126
vendor/fzaninotto/faker/src/Faker/Provider/en_SG/Address.php
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\en_SG;
|
||||
|
||||
class Address extends \Faker\Provider\Address
|
||||
{
|
||||
|
||||
// http://en.wikipedia.org/wiki/Singapore_Post#Address_format
|
||||
protected static $streetNumber = array('##', '###');
|
||||
|
||||
// http://en.wikipedia.org/wiki/Singapore_Post#Address_format
|
||||
protected static $blockNumber = array(
|
||||
'Blk ##',
|
||||
'Blk ###',
|
||||
'Blk ###A',
|
||||
'Blk ###B',
|
||||
'Blk ###C',
|
||||
'Blk ###D',
|
||||
'Blk ###E',
|
||||
'Blk ###F',
|
||||
'Blk ###G',
|
||||
'Blk ###H',
|
||||
);
|
||||
|
||||
// http://www.streetdirectory.com/asia_travel/travel/street/alphabet2/
|
||||
protected static $streetSuffix = array(
|
||||
'Alley', 'Avenue',
|
||||
'Bridge',
|
||||
'Crescent',
|
||||
'Drive',
|
||||
'Grove',
|
||||
'Highway', 'Hill',
|
||||
'Lane', 'Link',
|
||||
'Park', 'Place',
|
||||
'Quay',
|
||||
'Road',
|
||||
'Walk', 'Way',
|
||||
);
|
||||
|
||||
// http://www.streetdirectory.com/asia_travel/travel/street/alphabet2/
|
||||
protected static $streetPrefix = array(
|
||||
'Jalan',
|
||||
);
|
||||
|
||||
// http://www.streetdirectory.com/asia_travel/travel/street/alphabet2/
|
||||
// http://remembersingapore.org/2011/04/04/old-names-of-places/
|
||||
protected static $streetName = array(
|
||||
'Adam', 'Airport', 'Alexandra', 'Aljunied', 'Ampang', 'Ann Siang', 'Angus', 'Anson', 'Armenian',
|
||||
'Balmoral', 'Battery', 'Bencoolen',
|
||||
'Collyer', 'Clarke', 'Church', 'Cecil', 'Cross', 'Chulia', 'Cheang Hong Lim', 'Chin Swee', 'Choon Guan',
|
||||
'Devonshire', 'Dublin', 'Duxton', 'D\'Almeida',
|
||||
'East Coast', 'Eden', 'Edgware', 'Eunos',
|
||||
'Fifth', 'First', 'Funan', 'Fullerton',
|
||||
'George', 'Glasgow', 'Grange',
|
||||
'Havelock', 'High', 'Hylam',
|
||||
'International Business', 'International', 'Irving',
|
||||
'Jubilee',
|
||||
'Kensington Park', 'Kitchener', 'Knights',
|
||||
'Lancaster', 'Leicester', 'Lengkok Bahru', 'Lim Teck Kim',
|
||||
'Malay', 'Market', 'Middle', 'Malabar', 'Merchant', 'Mohammed Sultan',
|
||||
'Napier', 'Nathan', 'Newton',
|
||||
'Ocean', 'One Tree', 'Orchard', 'Outram', 'Ophir',
|
||||
'Pekin', 'Peng Siang', 'Prince Edward', 'Palmer',
|
||||
'Quality', 'Queen',
|
||||
'Raffles', 'Robinson', 'Rochor', 'Regent', 'Ridley', 'River Valley',
|
||||
'Sixth', 'Somerset', 'Stanley', 'Stamford', 'Shenton', 'Sultan',
|
||||
'Telok Ayer', 'Temple', 'Thomson', 'Unity', 'Victoria', 'Xilin', 'York', 'Zion',
|
||||
);
|
||||
|
||||
protected static $streetAddressFormats = array(
|
||||
'{{streetPrefix}} {{streetName}}',
|
||||
'{{streetName}} {{streetSuffix}}',
|
||||
);
|
||||
|
||||
protected static $floorNumber = array(
|
||||
'##', '0#',
|
||||
);
|
||||
|
||||
protected static $apartmentNumber = array(
|
||||
'##', '###',
|
||||
);
|
||||
|
||||
// http://en.wikipedia.org/wiki/Singapore_Post#Address_format
|
||||
protected static $addressFormats = array(
|
||||
"{{streetNumber}} {{streetAddress}}\n{{townName}} {{postcode}}",
|
||||
"{{blockNumber}} {{streetAddress}}\n{{floorNumber}} {{apartmentNumber}}\n{{townName}} {{postcode}}",
|
||||
);
|
||||
|
||||
protected static $townName = 'SINGAPORE';
|
||||
|
||||
protected static $postcode = array('######');
|
||||
|
||||
protected static $country = array(
|
||||
'SINGAPORE',
|
||||
);
|
||||
|
||||
public function streetPrefix()
|
||||
{
|
||||
return static::randomElement(static::$streetPrefix);
|
||||
}
|
||||
|
||||
public function streetNumber()
|
||||
{
|
||||
return static::numerify(static::randomElement(static::$streetNumber));
|
||||
}
|
||||
|
||||
public function blockNumber()
|
||||
{
|
||||
return static::numerify(static::randomElement(static::$blockNumber));
|
||||
}
|
||||
|
||||
public function floorNumber()
|
||||
{
|
||||
return static::randomElement(static::$floorNumber);
|
||||
}
|
||||
|
||||
public function apartmentNumber()
|
||||
{
|
||||
return static::randomElement(static::$apartmentNumber);
|
||||
}
|
||||
|
||||
public function townName()
|
||||
{
|
||||
return static::$townName;
|
||||
}
|
||||
}
|
||||
107
vendor/fzaninotto/faker/src/Faker/Provider/en_SG/PhoneNumber.php
vendored
Normal file
107
vendor/fzaninotto/faker/src/Faker/Provider/en_SG/PhoneNumber.php
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider\en_SG;
|
||||
|
||||
class PhoneNumber extends \Faker\Provider\PhoneNumber
|
||||
{
|
||||
protected static $internationalCodePrefix = array(
|
||||
'+65',
|
||||
'65',
|
||||
);
|
||||
|
||||
protected static $zeroToEight = array(0, 1, 2, 3, 4, 5, 6, 7, 8);
|
||||
|
||||
protected static $oneToEight = array(1, 2, 3, 4, 5, 6, 7, 8);
|
||||
|
||||
protected static $mobileNumberFormats = array(
|
||||
'{{internationalCodePrefix}}9{{zeroToEight}}## ####',
|
||||
'{{internationalCodePrefix}} 9{{zeroToEight}}## ####',
|
||||
'9{{zeroToEight}}## ####',
|
||||
'{{internationalCodePrefix}}8{{oneToEight}}## ####',
|
||||
'{{internationalCodePrefix}} 8{{oneToEight}}## ####',
|
||||
'8{{oneToEight}}## ####',
|
||||
);
|
||||
|
||||
protected static $fixedLineNumberFormats = array(
|
||||
'{{internationalCodePrefix}}6### ####',
|
||||
'{{internationalCodePrefix}} 6### ####',
|
||||
'6### ####',
|
||||
);
|
||||
|
||||
// http://en.wikipedia.org/wiki/Telephone_numbers_in_Singapore#Numbering_plan
|
||||
protected static $formats = array(
|
||||
'{{mobileNumber}}',
|
||||
'{{fixedLineNumber}}',
|
||||
);
|
||||
|
||||
protected static $voipNumber = array(
|
||||
'{{internationalCodePrefix}}3### ####',
|
||||
'{{internationalCodePrefix}} 3### ####',
|
||||
'3### ####',
|
||||
);
|
||||
|
||||
protected static $tollFreeInternationalNumber = array(
|
||||
'800 ### ####'
|
||||
);
|
||||
|
||||
protected static $tollFreeLineNumber = array(
|
||||
'1800 ### ####'
|
||||
);
|
||||
|
||||
protected static $premiumPhoneNumber = array(
|
||||
'1900 ### ####'
|
||||
);
|
||||
|
||||
public function tollFreeInternationalNumber()
|
||||
{
|
||||
return static::randomElement(static::$tollFreeInternationalNumber);
|
||||
}
|
||||
|
||||
public function tollFreeLineNumber()
|
||||
{
|
||||
return static::randomElement(static::$tollFreeLineNumber);
|
||||
}
|
||||
|
||||
public function premiumPhoneNumber()
|
||||
{
|
||||
return static::randomElement(static::$premiumPhoneNumber);
|
||||
}
|
||||
|
||||
public function mobileNumber()
|
||||
{
|
||||
$format = static::randomElement(static::$mobileNumberFormats);
|
||||
|
||||
return static::numerify($this->generator->parse($format));
|
||||
}
|
||||
|
||||
public function fixedLineNumber()
|
||||
{
|
||||
$format = static::randomElement(static::$fixedLineNumberFormats);
|
||||
|
||||
return static::numerify($this->generator->parse($format));
|
||||
}
|
||||
|
||||
public function voipNumber()
|
||||
{
|
||||
$format = static::randomElement(static::$voipNumber);
|
||||
|
||||
return $this->generator->parse($format);
|
||||
}
|
||||
|
||||
public function internationalCodePrefix()
|
||||
{
|
||||
$format = static::randomElement(static::$internationalCodePrefix);
|
||||
|
||||
return $this->generator->parse($format);
|
||||
}
|
||||
|
||||
public function zeroToEight()
|
||||
{
|
||||
return static::randomElement(static::$zeroToEight);
|
||||
}
|
||||
|
||||
public function oneToEight()
|
||||
{
|
||||
return static::randomElement(static::$oneToEight);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user