PHP 8.2.30
Preview: PhoneNumber.php Size: 1.02 KB
/home/byroehnu/easetack.com/vendor/fakerphp/faker/src/Faker/Provider/es_ES/PhoneNumber.php

<?php

namespace Faker\Provider\es_ES;

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
    protected static $formats = [
        '+34 9## ## ####',
        '+34 9## ######',
        '+34 9########',
        '+34 9##-##-####',
        '+34 9##-######',
        '9## ## ####',
        '9## ######',
        '9########',
        '9##-##-####',
        '9##-######',
    ];

    protected static $mobileFormats = [
        '+34 6## ## ####',
        '+34 6## ######',
        '+34 6########',
        '+34 6##-##-####',
        '+34 6##-######',
        '6## ## ####',
        '6## ######',
        '6########',
        '6##-##-####',
        '6##-######',
    ];

    protected static $tollFreeFormats = [
        '900 ### ###',
        '800 ### ###',
    ];

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

    public static function tollFreeNumber()
    {
        return static::numerify(static::randomElement(static::$tollFreeFormats));
    }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
6.01 KB lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
412 B lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
8.33 KB lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
368 B lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
1.23 KB lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
13.23 KB lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
1.02 KB lrw-rw-rw- 2024-11-21 13:46:39
Edit Download
295.41 KB lrw-rw-rw- 2024-11-21 13:46:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).