PHP Class Symfony\Component\DependencyInjection\Alias

Mostra file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( string $id, boolean $public = true ) Constructor.
__toString ( ) : string Returns the Id of this alias.
isPublic ( ) : boolean Checks if this DI Alias should be public or not.
setPublic ( boolean $boolean ) Sets if this Alias is public.

Method Details

__construct() public method

Constructor.
public __construct ( string $id, boolean $public = true )
$id string Alias identifier
$public boolean If this alias is public

__toString() public method

Returns the Id of this alias.
public __toString ( ) : string
return string The alias id

isPublic() public method

Checks if this DI Alias should be public or not.
public isPublic ( ) : boolean
return boolean

setPublic() public method

Sets if this Alias is public.
public setPublic ( boolean $boolean )
$boolean boolean If this Alias should be public