Przykładowa klasa z configiem

namespace App\Domain\Log\Statuses;

class Statuses {

    const STATUS_SUCCESS = 1;
    const STATUS_ERROR = 2;

    private static $types = [
        self::STATUS_SUCCESS => 'success',
        self::STATUS_ERROR => 'error',
    ];

    /**
     * get types
     * 
     * @return array
     */
    public static function getTypes(): array {
        return self::$types;
    }

}
Komentarze wyłączone