warning() public méthode

This method automatically identifies the warning as coming from this class.
public warning ( string | array | Wire $text, integer | boolean $flags )
$text string | array | Wire
$flags integer | boolean See Notices::flags or specify TRUE to have the error also logged to errors.txt
Exemple #1
0
 /**
  * Record a warning message in the warnings log (warnings.txt)
  *
  * @param string $text
  * @param int|bool $flags Specify boolean true to also display the warning interactively (admin only).
  * @return $this
  *
  */
 public function warning($text, $flags = 0)
 {
     $flags = $flags === true ? Notice::log : $flags | Notice::logOnly;
     return parent::warning($text, $flags);
 }