Barryvdh\DomPDF\PDF::setWarnings PHP Method

setWarnings() public method

Show or hide warnings
public setWarnings ( boolean $warnings )
$warnings boolean
    public function setWarnings($warnings)
    {
        $this->showWarnings = $warnings;
        return $this;
    }

Usage Example

 /**
  * Show or hide warnings
  *
  * @param bool $warnings
  * @return $this 
  * @static 
  */
 public static function setWarnings($warnings)
 {
     return \Barryvdh\DomPDF\PDF::setWarnings($warnings);
 }