Вход Регистрация
Файл: gapps/vendor/fzaninotto/faker/src/Faker/Provider/el_GR/PhoneNumber.php
Строк: 35
<?php

namespace FakerProviderel_GR;

class 
PhoneNumber extends FakerProviderPhoneNumber
{
    
/**
     * @link https://en.wikipedia.org/wiki/Telephone_numbers_in_Greece
     */
    
protected static $formats = array(
        
// International formats
        
'+30 2# ########',
        
'+30 2## #######',
        
'+30 2### ######',
        
'+302#########',

        
'+3069########',
        
'+30 69 ########',
        
'+30 69########',
        
'+30 69# #######',
        
'+30 69# ### ####',
        
'+30 69# #### ###',
        
'+30 69## ######',
        
'+30 69## ## ## ##',
        
'+30 69## ### ###',

        
// Standard format
        
'2#########',
        
'2## #######',
        
'2### ######',

        
'69########',
        
'69# #######',
        
'69# ### ####',
        
'69# #### ###',
        
'69## ######',
        
'69## ## ## ##',
        
'69## ### ###',
    );

    protected static 
$mobileFormats = array(
        
// International formats
        
'+3069########',
        
'+30 69########',
        
'+30 69# #######',
        
'+30 69# ### ####',
        
'+30 69# #### ###',
        
'+30 69## ######',
        
'+30 69## ## ## ##',
        
'+30 69## ### ###',

        
// Standard formats
        
'69########',
        
'69# #######',
        
'69# ### ####',
        
'69# #### ###',
        
'69## ######',
        
'69## ## ## ##',
        
'69## ### ###',
    );

    public static function 
mobilePhoneNumber()
    {
        return static::
numerify(static::randomElement(static::$mobileFormats));
    }

    protected static 
$tollFreeFormats = array(
        
// International formats
        
'+30 800#######',
        
'+30 800 #######',
        
'+30 800 ## #####',
        
'+30 800 ### ####',

        
// Standard formats
        
'800#######',
        
'800 #######',
        
'800 ## #####',
        
'800 ### ####',
    );

    public static function 
tollFreeNumber()
    {
        return static::
numerify(static::randomElement(static::$tollFreeFormats));
    }
}
Онлайн: 1
Реклама