public function get(callable $codeBlock = null)
    {
        if (is_callable($codeBlock)) {
            return call_user_func($codeBlock, $this->value);
        } else {
            return $this->value;
        }
    }
public function get(callable $codeBlock = null)
    {
        if (is_callable($codeBlock)) {
            return call_user_func($codeBlock, $this->value);
        } else {
            return $this->value;
        }
    }
public function get ( callable $ codeBlock = null ) { if ( is_callable ( $ codeBlock ) ) { return call_user_func ( $ codeBlock , $ this -> value ) ; } else { return $ this -> value ; } }
Returns the monad's value and applies an optional code-block before returning it.

@param callable $codeBlock

@return mixed
Returns the monad s value and applies an optional code - block before returning it .