protected function validateType($relType)
    {
        $valid = ['one', 'many'];
        if (!in_array($relType, $valid)) {
            throw MetadataException::invalidRelType($relType, $valid);
        }
        return true;
    }
protected function validateType($relType)
    {
        $valid = ['one', 'many'];
        if (!in_array($relType, $valid)) {
            throw MetadataException::invalidRelType($relType, $valid);
        }
        return true;
    }
protected function validateType ( $ relType ) { $ valid = [ 'one' , 'many' ] ; if ( ! in_array ( $ relType , $ valid ) ) { throw MetadataException :: invalidRelType ( $ relType , $ valid ) ; } return true ; }
Validates the relationship type.

@param   string  $type
@return  bool
@throws  MetadataException
Validates the relationship type .