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\hy_AM;
4
 
5
class PhoneNumber extends \Faker\Provider\PhoneNumber
6
{
7
    protected static $codes = [91, 96, 99, 43, 77, 93, 94, 98, 97, 77, 55, 95, 41, 49];
8
 
9
    protected static $numberFormats = [
10
        '######',
11
        '##-##-##',
12
        '###-###',
13
    ];
14
 
15
    protected static $formats = [
16
        '0{{code}} {{numberFormat}}',
17
        '(0{{code}}) {{numberFormat}}',
18
        '+374{{code}} {{numberFormat}}',
19
        '+374 {{code}} {{numberFormat}}',
20
    ];
21
 
22
    public function phoneNumber()
23
    {
24
        return static::numerify($this->generator->parse(static::randomElement(static::$formats)));
25
    }
26
 
27
    public function code()
28
    {
29
        return static::randomElement(static::$codes);
30
    }
31
 
32
    public function numberFormat()
33
    {
34
        return static::randomElement(static::$numberFormats);
35
    }
36
}