warn() публичный метод

Convenience method for err() that wraps message between tag
См. также: http://book.cakephp.org/3.0/en/console-and-shells.html#Shell::err
public warn ( string | array | null $message = null, integer $newlines = 1 ) : integer | boolean
$message string | array | null A string or an array of strings to output
$newlines integer Number of newlines to append
Результат integer | boolean The number of bytes returned from writing to stderr.
Пример #1
0
 /**
  * Convenience method for err() that wraps message between <warning /> tag
  * @param string|array|null $message A string or an array of strings to
  *  output
  * @param int $newlines Number of newlines to append
  * @return int|bool Returns the number of bytes returned from writing to
  *  stdout
  */
 public function warning($message = null, $newlines = 1)
 {
     return parent::warn($message, $newlines);
 }