Elgg\AttributeLoader::checkType PHP Méthode

checkType() protected méthode

Check that the type is correct
protected checkType ( stdClass $row ) : void
$row stdClass Database row
Résultat 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);
        }
    }