public function withAutoProcessContent($flag)
    {
        if (!is_bool($flag)) {
            $msg = 'Auto processing flag must be a boolean value!';
            throw new \InvalidArgumentException($msg);
        }

        $self = clone $this;
        $self->autoProcessContent = (bool)$flag;

        return $self;
    }
public function withAutoProcessContent($flag)
    {
        if (!is_bool($flag)) {
            $msg = 'Auto processing flag must be a boolean value!';
            throw new \InvalidArgumentException($msg);
        }

        $self = clone $this;
        $self->autoProcessContent = (bool)$flag;

        return $self;
    }
public function withAutoProcessContent ( $ flag ) { if ( ! is_bool ( $ flag ) ) { $ msg = 'Auto processing flag must be a boolean value!' ; throw new \ InvalidArgumentException ( $ msg ) ; } $ self = clone $ this ; $ self -> autoProcessContent = ( bool ) $ flag ; return $ self ; }
Whether shortcode content will be automatically processed and handler
already receives shortcode with processed content. If false, every
shortcode handler needs to process content on its own. Default true.

@param bool $flag True if enabled (default), false otherwise

@return self
Whether shortcode content will be automatically processed and handler already receives shortcode with processed content . If false every shortcode handler needs to process content on its own . Default true .