for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-DependencyInjection package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\DependencyInjection;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/8/15
class Reference
{
* @var string
private $id;
* Constructor.
* @param string $id
public function __construct($id)
$this->id = strtolower($id);
}
* Get service id.
* @return string
public function getId()
return $this->id;
* Cast reference to string representation.
public function __toString()
return $this->getId();