@api
Expanded class hierarchy of Alias
class Alias {
private $id;
private $public;
/**
* Constructor.
*
* @param string $id Alias identifier
* @param Boolean $public If this alias is public
*
* @api
*/
public function __construct($id, $public = true) {
$this->id = strtolower($id);
$this->public = $public;
}
/**
* Checks if this DI Alias should be public or not.
*
* @return Boolean
*
* @api
*/
public function isPublic() {
return $this->public;
}
/**
* Sets if this Alias is public.
*
* @param Boolean $boolean If this Alias should be public
*
* @api
*/
public function setPublic($boolean) {
$this->public = (bool) $boolean;
}
/**
* Returns the Id of this alias.
*
* @return string The alias id
*
* @api
*/
public function __toString() {
return $this->id;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Alias:: |
private | property | ||
Alias:: |
private | property | ||
Alias:: |
public | function | Checks if this DI Alias should be public or not. | |
Alias:: |
public | function | Sets if this Alias is public. | |
Alias:: |
public | function | Constructor. | |
Alias:: |
public | function | Returns the Id of this alias. |