lean-api/src/Factory/MessageFactoryInterface.php
2025-04-10 17:54:04 +00:00

14 lines
774 B
PHP

<?php
namespace Lean\Api\Factory;
interface MessageFactoryInterface
{
public static function generateSuccess(string $message, ? string $header = null, ? string $class = null) : self;
public static function generateError(string $message, ? string $header = null, ? string $class = null) : self;
public static function generateWarning(string $message, ? string $header = null, ? string $class = null) : self;
public static function generateInformation(string $message, ? string $header = null, ? string $class = null) : self;
public static function generateDebug(string $message, ? string $header = null, ? string $class = null) : self;
public static function generateTrace(string $message, ? string $header = null, ? string $class = null) : self;
}