src/orm/classes/Field/Abstract.php
protected function checkParams(array $params)
    {
        $unknown = array_diff(array_keys($params),
            $this->getRequiredParams(), $this->getOptionalParams(), array('default', 'comment'));
        if (count($unknown) > 0)
        {
            throw new InvalidArgumentException(
                sprintf('Unknown option(s) "%s" in field "%s" definition',
                    implode(',', $unknown), $this->getName()));
        }

        $missed = array_diff($this->getRequiredParams(), array_keys($params));
        if (count($missed) > 0)
        {
            throw new InvalidArgumentException(
                sprintf('Missed required option(s) "%s" in field "%s" definition',
                    implode(',', $missed), $this->getName()));
        }
    }
protected function checkParams(array $params)
    {
        $unknown = array_diff(array_keys($params),
            $this->getRequiredParams(), $this->getOptionalParams(), array('default', 'comment'));
        if (count($unknown) > 0)
        {
            throw new InvalidArgumentException(
                sprintf('Unknown option(s) "%s" in field "%s" definition',
                    implode(',', $unknown), $this->getName()));
        }

        $missed = array_diff($this->getRequiredParams(), array_keys($params));
        if (count($missed) > 0)
        {
            throw new InvalidArgumentException(
                sprintf('Missed required option(s) "%s" in field "%s" definition',
                    implode(',', $missed), $this->getName()));
        }
    }
Проверяет параметры в описании поля

@param array $params

@throws InvalidArgumentException

@uses getValidParams()