LeanQuery/Aliases.php
/**
	 * @param string $alias
	 * @param string $entityClass
	 * @throws InvalidArgumentException
	 */
@param string $alias
@param string $entityClass
@throws InvalidArgumentException
@param string $alias @param string $entityClass @throws InvalidArgumentException
public function addAlias($alias, $entityClass)
	{
		if (isset($this->aliases[$alias])) {
			throw new InvalidArgumentException("Alias $alias is already in use.");
		}
		$this->aliases[$alias] = $entityClass;
		if (!array_key_exists($entityClass, $this->index)) {
			$this->index[$entityClass] = $alias;
		}
	}
public function addAlias ( $ alias , $ entityClass ) { if ( isset ( $ this -> aliases [ $ alias ] ) ) { throw new InvalidArgumentException ( " Alias  $ alias  is already in use. " ) ; } $ this -> aliases [ $ alias ] = $ entityClass ; if ( ! array_key_exists ( $ entityClass , $ this -> index ) ) { $ this -> index [ $ entityClass ] = $ alias ; } }
@param string $alias
 @param string $entityClass
 @throws InvalidArgumentException
@param string $alias @param string $entityClass @throws InvalidArgumentException