/**
 * Set alert type warning.
 *
 * @return self Returns instance of the Rule class.
 *
 * @access public
 */
public function warning(): self

Examples

Set Alert element type warning using fluent interface

use function Thermage\alert;
use function Thermage\render;

// ...

render(
  alert('Stay RAD!')->warning()
);

Set Alert element type warning using magic classes pipeline

use function Thermage\alert;
use function Thermage\render;

// ...

render(
  alert('Stay RAD!', 'warning')
);
Terminal
$ php thermage.php
Stay RAD!