Mapping/ItemMetaData.php
public function addRequiredHit($hitIdentifier)
	{
		if(!in_array($hitIdentifier, $this->requiredHits))
		{
			$this->requiredHits[] = $hitIdentifier;
		}
		return $this;
	}
public function addRequiredHit($hitIdentifier)
	{
		if(!in_array($hitIdentifier, $this->requiredHits))
		{
			$this->requiredHits[] = $hitIdentifier;
		}
		return $this;
	}
public function addRequiredHit ( $ hitIdentifier ) { if ( ! in_array ( $ hitIdentifier , $ this -> requiredHits ) ) { $ this -> requiredHits [ ] = $ hitIdentifier ; } return $ this ; }
Add Required Hit

@param type $hitIdentifier
@return \Emhar\SearchDoctrineBundle\Mapping\ItemMetaData
Add Required Hit