michaeldouglas/laravel-pagseguro

View on GitHub
src/laravel/pagseguro/Phone/ValidationRules.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace laravel\pagseguro\Phone;

use laravel\pagseguro\Complements\ValidationRulesInterface;
use laravel\pagseguro\Complements\ValidationRulesTrait;

/**
 * Validation Rules Object
 *
 * @category   Phone
 * @package    Laravel\PagSeguro\Phone
 *
 * @author     Isaque de Souza <isaquesb@gmail.com>
 * @since      2015-01-11
 *
 * @copyright  Laravel\PagSeguro
 */
class ValidationRules implements ValidationRulesInterface
{

    /**
     * @var array
     */
    protected $rules = [
        'areaCode' => 'Required|numeric|digits:2',
        'countryCode' => 'Required|numeric|digits:2',
        'number' => 'Required|digits_between:8,9',
    ];

    /**
     * @var array
     */
    protected $messages;

    use ValidationRulesTrait;
}