alexia\mar\tests\critical::_reservedNames PHP 메소드

_reservedNames() 공개 메소드

New class names that are reserved for internal PHP classes.
public _reservedNames ( $line ) : boolean
리턴 boolean Line matches test.
    public function _reservedNames($line)
    {
        $regex = "#^\\s*?(class|interface|trait)\\s+?(?:bool|int|float|string|null|false|true|resource|object|mixed|numeric)(?:\$|\\s|{)#i";
        if (preg_match($regex, $line)) {
            return true;
        }
        return false;
    }