Mapping/ItemMetaData.php
protected function validateAndCompleteEntity($entityIdentifier, $entityDefinition)
	{
		if(!isset($entityDefinition['label']))
		{
			throw MappingException::requiredMapping($this->itemClass, 'label', $entityIdentifier);
		}
		elseif(!settype($entityDefinition['label'], 'string'))
		{
			throw MappingException::invalidMappingType($this->itemClass, 'label', 'string', $entityIdentifier);
		}
		else
		{
			$this->entityLabels[$entityIdentifier] = $entityDefinition['label'];
		}

		if(!isset($entityDefinition['entityClass']))
		{
			throw MappingException::requiredMapping($this->itemClass, 'entityClass', $entityIdentifier);
		}
		elseif(!settype($entityDefinition['entityClass'], 'string'))
		{
			throw MappingException::invalidMappingType($this->itemClass, 'entityClass', 'string', $entityIdentifier);
		}
		else
		{
			$this->entityClasses[$entityIdentifier] = $entityDefinition['entityClass'];
		}
	}
protected function validateAndCompleteEntity($entityIdentifier, $entityDefinition)
	{
		if(!isset($entityDefinition['label']))
		{
			throw MappingException::requiredMapping($this->itemClass, 'label', $entityIdentifier);
		}
		elseif(!settype($entityDefinition['label'], 'string'))
		{
			throw MappingException::invalidMappingType($this->itemClass, 'label', 'string', $entityIdentifier);
		}
		else
		{
			$this->entityLabels[$entityIdentifier] = $entityDefinition['label'];
		}

		if(!isset($entityDefinition['entityClass']))
		{
			throw MappingException::requiredMapping($this->itemClass, 'entityClass', $entityIdentifier);
		}
		elseif(!settype($entityDefinition['entityClass'], 'string'))
		{
			throw MappingException::invalidMappingType($this->itemClass, 'entityClass', 'string', $entityIdentifier);
		}
		else
		{
			$this->entityClasses[$entityIdentifier] = $entityDefinition['entityClass'];
		}
	}
protected function validateAndCompleteEntity ( $ entityIdentifier , $ entityDefinition ) { if ( ! isset ( $ entityDefinition [ 'label' ] ) ) { throw MappingException :: requiredMapping ( $ this -> itemClass , 'label' , $ entityIdentifier ) ; } elseif ( ! settype ( $ entityDefinition [ 'label' ] , 'string' ) ) { throw MappingException :: invalidMappingType ( $ this -> itemClass , 'label' , 'string' , $ entityIdentifier ) ; } else { $ this -> entityLabels [ $ entityIdentifier ] = $ entityDefinition [ 'label' ] ; } if ( ! isset ( $ entityDefinition [ 'entityClass' ] ) ) { throw MappingException :: requiredMapping ( $ this -> itemClass , 'entityClass' , $ entityIdentifier ) ; } elseif ( ! settype ( $ entityDefinition [ 'entityClass' ] , 'string' ) ) { throw MappingException :: invalidMappingType ( $ this -> itemClass , 'entityClass' , 'string' , $ entityIdentifier ) ; } else { $ this -> entityClasses [ $ entityIdentifier ] = $ entityDefinition [ 'entityClass' ] ; } }
Validates & completes the given entity definition.

@param string $entityIdentifier
@param array $entityDefinition
@throws MappingException
Validates & completes the given entity definition .