public function get(callable $codeBlock = null)
    {
        if (!$this->result) {
            $this->result = $this->run(new Success);
        }

        if ($this->result instanceof Success) {
            return is_callable($codeBlock) ? $codeBlock($this->result) : $this->result;
        }

        return $this->result;
    }
public function get(callable $codeBlock = null)
    {
        if (!$this->result) {
            $this->result = $this->run(new Success);
        }

        if ($this->result instanceof Success) {
            return is_callable($codeBlock) ? $codeBlock($this->result) : $this->result;
        }

        return $this->result;
    }
public function get ( callable $ codeBlock = null ) { if ( ! $ this -> result ) { $ this -> result = $ this -> run ( new Success ) ; } if ( $ this -> result instanceof Success ) { return is_callable ( $ codeBlock ) ? $ codeBlock ( $ this -> result ) : $ this -> result ; } return $ this -> result ; }
Returns the result of the code-block execution attempt.

@param callable $codeBlock Is never executed for this type.

@return null
Returns the result of the code - block execution attempt .