26 lines
524 B
PHP
26 lines
524 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use App\Interfaces\SpsConfigInterface;
|
||
|
|
use App\Traits\Enums\SpsConfigTrait;
|
||
|
|
|
||
|
|
// phpcs:ignore PSR1.Classes.ClassDeclaration.MissingNamespace
|
||
|
|
enum SpsEnum implements SpsConfigInterface
|
||
|
|
{
|
||
|
|
use SpsConfigTrait;
|
||
|
|
|
||
|
|
case LeGauloisPro;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* URL method
|
||
|
|
* Website url ex: https://le-gaulois-pro.s-web.test
|
||
|
|
*
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function url(): string
|
||
|
|
{
|
||
|
|
return match ($this) {
|
||
|
|
SpsEnum::LeGauloisPro => 'https://le-gaulois-pro.s-web.test'
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|