private function getTypeDefinition($objectTypeId)
    {
        if (empty($objectTypeId) || !is_string($objectTypeId)) {
            throw new CmisInvalidArgumentException(
                'Type property must be set and must be of type string but is empty or not a string.'
            );
        }

        return $this->session->getTypeDefinition($objectTypeId);
    }
private function getTypeDefinition($objectTypeId)
    {
        if (empty($objectTypeId) || !is_string($objectTypeId)) {
            throw new CmisInvalidArgumentException(
                'Type property must be set and must be of type string but is empty or not a string.'
            );
        }

        return $this->session->getTypeDefinition($objectTypeId);
    }
private function getTypeDefinition ( $ objectTypeId ) { if ( empty ( $ objectTypeId ) || ! is_string ( $ objectTypeId ) ) { throw new CmisInvalidArgumentException ( 'Type property must be set and must be of type string but is empty or not a string.' ) ; } return $ this -> session -> getTypeDefinition ( $ objectTypeId ) ; }
Get a type definition for the given object type id. If an empty id is given throw an exception.

@param string $objectTypeId
@return ObjectTypeInterface
@throws CmisInvalidArgumentException
Get a type definition for the given object type id . If an empty id is given throw an exception .