Mpociot\ApiDoc\Generators\AbstractGenerator::normalizeRule PHP 메소드

normalizeRule() 보호된 메소드

Normalizes a rule so that we can accept short types.
protected normalizeRule ( string $rule ) : string
$rule string
리턴 string
    protected function normalizeRule($rule)
    {
        switch ($rule) {
            case 'int':
                return 'integer';
            case 'bool':
                return 'boolean';
            default:
                return $rule;
        }
    }