for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of slick/di package
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Slick\Di\Definition;
use Slick\Di\DefinitionInterface;
* Value definition
* @package Slick\Di\Definition
* @author Filipe Silva <[email protected]>
class Value extends AbstractDefinition implements DefinitionInterface
{
* @var mixed
protected $data;
* @param mixed $data
public function __construct($data)
$this->data = $data;
}
* Resolves the definition into a scalar or object
* @return mixed
public function resolve()
return $this->data;