Adds the aliases property definition.

@return string
425749
private function addAliases()
    {
        if (!$aliases = $this->container->getAliases()) {
            if ($this->container->isFrozen()) {
                return "\n        \$this->aliases = array();\n";
            } else {
                return '';
            }
        }

        $code = "        \$this->aliases = array(\n";
        ksort($aliases);
        foreach ($aliases as $alias => $id) {
            $id = (string) $id;
            while (isset($aliases[$id])) {
                $id = (string) $aliases[$id];
            }
            $code .= '            '.$this->export($alias).' => '.$this->export($id).",\n";
        }

        return $code."        );\n";
    }
547282
public function getAlias($property)
    {
        $alias = null;

        if (isset($this->_alias[$property])) {
            $alias = $this->_alias[$property];
        }

        return $alias;
    }
593733
public function getAliases($extension = null)
    {
        if ($extension === null) {
            return $this->aliases;
        }
        elseif (isset($this->aliases[$extension])) {
            return $this->aliases[$extension];
        }
        else {
            return null;
        }
    }
745778
public function getAliases()
    {
        if ($this->aliases === null) {
            $this->aliases = AliasesParser::parseSource(file_get_contents($this->getFileName()), $this->getNamespaceName());
        }
        return $this->aliases;
    }
257800
function appendImageAlias( $alias )
    {
        $key = $this->createImageAliasKey( $alias );
        $alias['alias_key'] = $key;
        $this->AliasList[$alias['name']] = $alias;
        return $key;
    }
244226
public function addAliases($alias)
    {
        foreach (func_get_args() as $alias) {
            $this->aliases[$alias] = true;
        }
        return $this;
    }
281914
public static function setAliases(array $aliases)
    {
        foreach ($aliases as $name => $path) {
            self::setAlias($name, $path);
        }
    }
1223632
public function setNamespaceAliases(array $namespace_aliases)
    {
        $this->namespace_aliases = array();
        foreach ($namespace_aliases as $alias => $fqnn) {
            $this->setNamespaceAlias($alias, $fqnn);
        }
        return $this;
    }
650322
public function aliases()
    {
        $request = $this->createRequestInstance(self::CAT_ALIASES, null, null);

        return $this->client->send($request);
    }
625854
protected function registerAliases()
    {
        foreach ($this->aliases as $abstract => $aliases) {
            foreach ((array) $aliases as $alias) {
                $this->app->alias($alias, $abstract);
            }
        }
    }
602249
public function addAlias(string $alias, string $original): self
    {
        $this->aliases[$alias] = $original;
        return $this;
    }
500435
public function getAliases() {
        $result = [];

        foreach ($this->rules as $name => $rule) {
            if (!empty($rule['aliasOf']) && $rule['aliasOf'] === $this->currentRuleName) {
                $result[] = $name;
            }
        }

        return $result;
    }
372041
public function addClassAlias($alias, $class)
    {
        $alias = static::normalise($alias);
        $class = static::normalise($class);

        $this->classAliases[$alias] = $class;

        return $this;
    }
202333
public function addAlias($alias, $facade)
    {
        if ($facadeCurrent = array_get($this->getAliases(), $alias)) {
            if ($facadeCurrent === $facade) {
                return;
            }
            $this->commentOut($alias, 'aliases');
        }

        $quote = $this->getQuoteType('aliases');
        $separator = $this->getArrayItemsSeparator('aliases');
        $anchor = $this->getInsertPoint('aliases');

        $insert = $separator . $quote . $alias . $quote . ' => ' . $quote . $facade . $quote . ',';

        $this->write($insert, $anchor);
    }
505843
protected function registerAliases()
    {
        $loader = AliasLoader::getInstance();
        foreach ($this->get('aliases', []) as $aliasName => $aliasClass) {
            $loader->alias($aliasName, $aliasClass);
        }
    }
1198907
public function addAlias(string $key, string $alias): AliasResolver
    {
        $this->aliases[$key] = $alias;

        return $this;
    }
106200
final public static function properties_definition() {
        $properties = static::define_properties();
        foreach ($properties as $property => $definition) {
            // Ensures that null is set to its default.
            if (!isset($definition['null'])) {
                $properties[$property]['null'] = NULL_NOT_ALLOWED;
            }
            if (!isset($definition['description'])) {
                $properties[$property]['description'] = $property;
            }
        }
        return $properties;
    }