4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection;
20 * @param string $id Alias identifier
21 * @param bool $public If this alias is public
23 public function __construct($id, $public = true)
25 $this->id = strtolower($id);
26 $this->public = $public;
30 * Checks if this DI Alias should be public or not.
34 public function isPublic()
40 * Sets if this Alias is public.
42 * @param bool $boolean If this Alias should be public
44 public function setPublic($boolean)
46 $this->public = (bool) $boolean;
50 * Returns the Id of this alias.
52 * @return string The alias id
54 public function __toString()