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

namespace FakerProviderzh_CN;

class 
PhoneNumber extends FakerProviderPhoneNumber
{
    protected static 
$operators = array(
        
134, 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 182, 187, 188, // china mobile
        
130, 131, 132, 145, 155, 156, 185, 186, 145, // china unicom
        
133 , 153 , 180 , 181 , 189, // chinatelecom
    
);

    protected static 
$formats = array('########');

    public static function 
phoneNumber()
    {
        
$operators = static::randomElement(static::$operators);

        return 
$operators . static::numerify(static::randomElement(static::$formats));
    }
}
Онлайн: 1
Реклама