protected function get(string $name, callable $callback)
    {
        if (isset($this->cache[$name])) {
            return $this->cache[$name];
        }

        return $this->cache[$name] = call_user_func($callback, $name);
    }
protected function get(string $name, callable $callback)
    {
        if (isset($this->cache[$name])) {
            return $this->cache[$name];
        }

        return $this->cache[$name] = call_user_func($callback, $name);
    }
protected function get ( string $ name , callable $ callback ) { if ( isset ( $ this -> cache [ $ name ] ) ) { return $ this -> cache [ $ name ] ; } return $ this -> cache [ $ name ] = call_user_func ( $ callback , $ name ) ; }
Retrieve a value that should not be created more than once

@param string $name The key we'll use to store the value once created
@param callable $callback A function to created the value if needed
@return mixed
Retrieve a value that should not be created more than once