Mapping/ItemMetaData.php
public function setHitEntityAttribute($hitIdentifier, $entityIdentifier, $attribute)
	{
		if(!array_key_exists($entityIdentifier, $this->entityClasses))
		{
			throw MappingException::invalidEntity($this->itemClass, $entityIdentifier);
		}
		$this->entityHitMapping[$entityIdentifier][$hitIdentifier] = $attribute;
		return $this;
	}
public function setHitEntityAttribute($hitIdentifier, $entityIdentifier, $attribute)
	{
		if(!array_key_exists($entityIdentifier, $this->entityClasses))
		{
			throw MappingException::invalidEntity($this->itemClass, $entityIdentifier);
		}
		$this->entityHitMapping[$entityIdentifier][$hitIdentifier] = $attribute;
		return $this;
	}
public function setHitEntityAttribute ( $ hitIdentifier , $ entityIdentifier , $ attribute ) { if ( ! array_key_exists ( $ entityIdentifier , $ this -> entityClasses ) ) { throw MappingException :: invalidEntity ( $ this -> itemClass , $ entityIdentifier ) ; } $ this -> entityHitMapping [ $ entityIdentifier ] [ $ hitIdentifier ] = $ attribute ; return $ this ; }
Set hit entity attribute

@param string $hitIdentifier
@param string $entityIdentifier
@param string $attribute
@return ItemMetaData
Set hit entity attribute