src/Toastr.php
public function toastr(string $type, string $message = '', string $title = '', string $options = ''): string
    {
        return "toastr.$type('$message', '$title', $options);";
    }
public function toastr(string $type, string $message = '', string $title = '', string $options = ''): string
    {
        return "toastr.$type('$message', '$title', $options);";
    }
public function toastr ( string $ type , string $ message = '' , string $ title = '' , string $ options = '' ) : string { return "toastr.$type('$message', '$title', $options);" ; }
Create a single toastr.

@param string      $type
@param string      $message
@param string|null $title
@param string|null $options

@return string
Create a single toastr .