Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Faker\Provider\en_HK;
4
 
5
class PhoneNumber extends \Faker\Provider\PhoneNumber
6
{
7
    protected static $formats = ['2#######', '3#######', '5#######', '6#######', '9#######'];
8
    protected static $mobileFormats = ['5#######', '6#######', '9#######'];
9
    protected static $landlineFormats = ['2#######', '3#######'];
10
    protected static $faxFormats = ['7#######'];
11
 
12
    /**
13
     * Return an en_HK mobile phone number
14
     *
15
     * @return string
16
     */
17
    public static function mobileNumber()
18
    {
19
        return static::numerify(static::randomElement(static::$mobileFormats));
20
    }
21
 
22
    /**
23
     * Return an en_HK landline number
24
     *
25
     * @return string
26
     */
27
    public static function landlineNumber()
28
    {
29
        return static::numerify(static::randomElement(static::$landlineFormats));
30
    }
31
 
32
    /**
33
     * Return an en_HK fax number
34
     *
35
     * @return string
36
     */
37
    public static function faxNumber()
38
    {
39
        return static::numerify(static::randomElement(static::$faxFormats));
40
    }
41
}