Kahlan\Box\Box::_set PHP Метод

_set() защищенный Метод

Stores a dependency definition.
protected _set ( $name, mixed $definition, mixed $type )
$definition mixed The definition.
$type mixed The type of the definition.
    protected function _set($name, $definition, $type)
    {
        if ($definition instanceof Closure) {
            $definition = $definition->bindTo($this, get_class($this));
        }
        $this->_definitions[$name] = compact('definition', 'type');
    }