@param string $fid
@param bool   $bool

@return static
181990
public static function create($fid, $bool = null)
  {
    if(!is_bool($bool))
    {
      throw new \InvalidArgumentException('Not a valid boolean value');
    }
    return parent::create($fid, $bool);
  }
482135
public function ignoreGlobal(?bool $bool = null): bool
    {
        if ($bool === null) {
            return $this->ignoreGlobal;
        }

        $this->ignoreGlobal = (bool) $bool;

        return $bool;
    }
578902
public function useSeconds($bool = null)
    {
        if (isset($bool)) {

            $this->option_use_seconds = (bool) $bool;
            $this->set_options['use_seconds'] = 'useSeconds';

            return $this;
        }
        else {

            return $this->option_use_seconds;
        }
    }
376823
public function withNoScript(bool $value = true) : self
    {
        $that = clone($this);
        $that->noScript = $value;
        return $that;
    }
663104
public function showLine( $bool = true )
	{
	    if ( $this->jsWriter instanceOf \Altamira\JsWriter\Ability\Lineable ) {
    	    $this->jsWriter->setSeriesShowLine( $this->getTitle(), $bool );
	    }
	    return $this;
	}
624687
public function disableEditingCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableEditingCheck($disable);

        return $this;
    }
1074488
public function interlace(bool $value = true)
    {
        $this->check();

        imageinterlace($this->image_resource, $value);

        return $this;
    }
435430
public function withIdentifier(bool $identifier): self
    {
        $metadata = clone $this;
        $metadata->identifier = $identifier;

        return $metadata;
    }
567715
public function packValue(bool $includeID = true)
    {
        $values = parent::packValue();

        if (!$includeID) {
            unset($values['_id']);
        }

        return $values;
    }
334361
public static function create($fid, $type = MessengerFailureType::HARD)
  {
    /** @var static $payload */
    $payload = parent::create($fid);
    $payload->type = $type;
    return $payload;
  }
738339
public function ignoreWhitespacesAtEndOfLine(bool $bool = true): Compare
    {
        $this->ignoreEOL = $this->useOption('--ignore-space-at-eol', $bool);
        return $this;
    }
1001475
public function ifFalse($bool)
    {
        if (null !== $this->apply) {
            throw new \RuntimeException('Cannot nest ifTrue or ifFalse call');
        }

        $this->apply = (false === $bool);

        return $this;
    }
503131
public function getPdf(bool $init = false): Mpdf
    {
        $this->pdf = (null === $this->pdf || true === $init) ? new Mpdf($this->config) : $this->pdf;

        return $this->pdf;
    }
318947
public function usePHPSession($bool = true)
    {
        if (!isset($_SESSION)) {
            session_start();
        }
        $this->_phpsession = $bool;
        return $this;
    }
887410
public function csrfProtect($bool = null)
    {
        if ($bool === null) {
            return $this->config->get('csrf_protect', true);
        }

        $this->config->set('csrf_protect', (bool) $bool);

        return $this;
    }
329381
public function rawData($bool = false)
	{
		if (is_bool($bool)) {
			$this->useRawData = $bool;
		} else {
			throw new RuntimeException('Invalid parameter type, expected boolean, got ' . gettype($bool));
		}
		
		return $this;
	}
1186204
public function usePickDate($bool = null)
    {
        if (isset($bool)) {

            $this->option_pick_date = (bool) $bool;
            $this->set_options['pick_date'] = 'pickDate';

            return $this;
        }
        else {

            return $this->option_pick_date;
        }
    }