for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Container package.
*
* Copyright (c) Miloš Đurić <[email protected]>
* For full copyright and license information, please refer to the LICENSE file,
* located at the package root folder.
*/
namespace Laganica\Di\Definition;
use Closure;
* Class ClosureDefinition
* @package Laganica\Di\Definition
class ClosureDefinition implements DefinitionInterface
{
* @var Closure
private $closure;
* @param Closure $closure
public function __construct(Closure $closure)
$this->closure = $closure;
}
* @return Closure
public function getClosure(): Closure
return $this->closure;