src/Box/Box.php
protected function _set($name, $definition, $type)
    {
        if ($definition instanceof Closure) {
            $definition = $definition->bindTo($this, get_class($this));
        }
        $this->_definitions[$name] = compact('definition', 'type');
    }
protected function _set($name, $definition, $type)
    {
        if ($definition instanceof Closure) {
            $definition = $definition->bindTo($this, get_class($this));
        }
        $this->_definitions[$name] = compact('definition', 'type');
    }
protected function _set ( $ name , $ definition , $ type ) { if ( $ definition instanceof Closure ) { $ definition = $ definition -> bindTo ( $ this , get_class ( $ this ) ) ; } $ this -> _definitions [ $ name ] = compact ( 'definition' , 'type' ) ; }
Stores a dependency definition.

@param  string $id         The name of the definition.
@param  mixed  $definition The definition.
@param  mixed  $type       The type of the definition.
Stores a dependency definition .