jeyroik/extas-loggers-light

View on GitHub
src/components/loggers/EMode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace extas\components\loggers;

enum EMode: string
{
    case Debug = 'debug';
    case Production = 'prod';

    public function isDebug(): bool
    {
        return match($this) {
            EMode::Debug => true,
            EMode::Production => false
        };
    }
}