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);
        }
    }