<?php

namespace Easymailing\App\Core\Provider\Woocommerce\Model;

class LogType
{

	const HOOK = 'hook';
	const ACTION = 'action';
	const BATCH = 'batch';
	const FILTER = 'filter';
	const REQUEST = 'request';

	const INFO = 'info';
	const WARNING = 'warning';
	const ERROR = 'error';


	public static function getLogTypes(): array
	{
		return [
			self::HOOK,
			self::ACTION,
			self::BATCH,
			self::FILTER,
			self::REQUEST,
			self::INFO,
			self::WARNING,
			self::ERROR
		];
	}

	public static function getClass($status): string
	{
		switch($status) {
			case self::REQUEST:
				return 'brand';
			case self::WARNING:
				return 'warning';
			case self::ERROR:
				return 'danger';
			case self::ACTION:
			case self::FILTER:
				return 'light-blue';
			default:
				return 'info';
		}
	}


}
