public function getRecipeById($id)
    {
        $result = [
            'className' => (isset($this->classNameById[$id])) ?
                $this->classNameById[$id] :
                null,
            'arguments' => (isset($this->argumentsById[$id])) ?
                $this->argumentsById[$id] :
                null,
            'constructor' => (isset($this->constructorById[$id])) ?
                $this->constructorById[$id] :
                null,
            'dependencies' => (isset($this->dependenciesById[$id])) ?
                $this->dependenciesById[$id] :
                null,
        ];

        return $result;
    }
public function getRecipeById($id)
    {
        $result = [
            'className' => (isset($this->classNameById[$id])) ?
                $this->classNameById[$id] :
                null,
            'arguments' => (isset($this->argumentsById[$id])) ?
                $this->argumentsById[$id] :
                null,
            'constructor' => (isset($this->constructorById[$id])) ?
                $this->constructorById[$id] :
                null,
            'dependencies' => (isset($this->dependenciesById[$id])) ?
                $this->dependenciesById[$id] :
                null,
        ];

        return $result;
    }
public function getRecipeById ( $ id ) { $ result = [ 'className' => ( isset ( $ this -> classNameById [ $ id ] ) ) ? $ this -> classNameById [ $ id ] : null , 'arguments' => ( isset ( $ this -> argumentsById [ $ id ] ) ) ? $ this -> argumentsById [ $ id ] : null , 'constructor' => ( isset ( $ this -> constructorById [ $ id ] ) ) ? $ this -> constructorById [ $ id ] : null , 'dependencies' => ( isset ( $ this -> dependenciesById [ $ id ] ) ) ? $ this -> dependenciesById [ $ id ] : null , ] ; return $ result ; }
Returns the recipe by id.

@param string $id The name of the class to return recipe for

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed Arguments as array, or NULL if no arguments set
Returns the recipe by id .