public function getStash(?string $key = null)
    {
        $content = json_decode(file_get_contents($this->temp()), true);

        return $key ? (isset($content[$key]) ? $content[$key] : null) : $content;
    }
public function getStash(?string $key = null)
    {
        $content = json_decode(file_get_contents($this->temp()), true);

        return $key ? (isset($content[$key]) ? $content[$key] : null) : $content;
    }
public function getStash ( ? string $ key = null ) { $ content = json_decode ( file_get_contents ( $ this -> temp ( ) ) , true ) ; return $ key ? ( isset ( $ content [ $ key ] ) ? $ content [ $ key ] : null ) : $ content ; }
Retrieve the contents of the relevant file.

@param  string|null $key

@return mixed
Retrieve the contents of the relevant file .