src/Container.php
public function setAliasOf($alias) {
        $alias = $this->normalizeID($alias);

        if ($alias === $this->currentRuleName) {
            trigger_error("You cannot set alias '$alias' to itself.", E_USER_NOTICE);
        } else {
            $this->currentRule['aliasOf'] = $alias;
        }
        return $this;
    }
public function setAliasOf($alias) {
        $alias = $this->normalizeID($alias);

        if ($alias === $this->currentRuleName) {
            trigger_error("You cannot set alias '$alias' to itself.", E_USER_NOTICE);
        } else {
            $this->currentRule['aliasOf'] = $alias;
        }
        return $this;
    }
public function setAliasOf ( $ alias ) { $ alias = $ this -> normalizeID ( $ alias ) ; if ( $ alias === $ this -> currentRuleName ) { trigger_error ( "You cannot set alias '$alias' to itself." , E_USER_NOTICE ) ; } else { $ this -> currentRule [ 'aliasOf' ] = $ alias ; } return $ this ; }
Set the rule that the current rule is an alias of.

@param string $alias The name of an entry in the container to point to.
@return $this
Set the rule that the current rule is an alias of .