Elgg\AttributeLoader::checkType PHP Метод

checkType() защищенный Метод

Check that the type is correct
protected checkType ( stdClass $row ) : void
$row stdClass Database row
Результат void
    protected function checkType($row)
    {
        if ($row['type'] !== $this->required_type) {
            $msg = "GUID:" . $row['guid'] . " is not a valid " . $this->class;
            throw new \InvalidClassException($msg);
        }
    }