![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/arcanedev/log-viewer/src/Contracts/Utilities/ |
<?php declare(strict_types=1); namespace Arcanedev\LogViewer\Contracts\Utilities; use Illuminate\Translation\Translator; /** * Interface LogLevels * * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ interface LogLevels { /* ----------------------------------------------------------------- | Getters & Setters | ----------------------------------------------------------------- */ /** * Set the Translator instance. * * @param \Illuminate\Translation\Translator $translator * * @return self */ public function setTranslator(Translator $translator); /** * Get the selected locale. * * @return string */ public function getLocale(); /** * Set the selected locale. * * @param string $locale * * @return self */ public function setLocale($locale); /* ----------------------------------------------------------------- | Main Methods | ----------------------------------------------------------------- */ /** * Get the log levels. * * @param bool $flip * * @return array */ public function lists($flip = false); /** * Get translated levels. * * @param string|null $locale * * @return array */ public function names($locale = null); /** * Get PSR log levels. * * @param bool $flip * * @return array */ public static function all($flip = false); /** * Get the translated level. * * @param string $key * @param string|null $locale * * @return string */ public function get($key, $locale = null); }