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

Examples

Set Alert element type success using fluent interface

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

// ...

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

Set Alert element type success using magic classes pipeline

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

// ...

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