src/Micrometa/Domain/Item/ItemSetupTrait.php
protected function valType($type)
    {
        $type = IriFactory::create($type);

        return strlen($type->name) ? $type : null;
    }
protected function valType($type)
    {
        $type = IriFactory::create($type);

        return strlen($type->name) ? $type : null;
    }
protected function valType ( $ type ) { $ type = IriFactory :: create ( $ type ) ; return strlen ( $ type -> name ) ? $ type : null ; }
Validate a single item type

@param \stdClass|Iri|string $type Item type

@return Iri|null Validated item type
@throws InvalidArgumentException If the item type object is invalid
Validate a single item type