AbstractStaticRegexRule::getPregFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/phpviet/validation
4
 *
5
 * @copyright (c) PHP Viet
6
 * @license [MIT](https://opensource.org/licenses/MIT)
7
 */
8
9
namespace PHPViet\Validation\Rules;
10
11
use Respect\Validation\Rules\AbstractRegexRule;
12
13
/**
14
 * @author Vuong Minh <[email protected]>
15
 * @since 1.0.0
16
 */
17
abstract class AbstractStaticRegexRule extends AbstractRegexRule
18
{
19
    protected function getPregFormat(): string
20
    {
21
        return static::pregFormat();
22
    }
23
24
    abstract public static function pregFormat(): string;
25
}
26