1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 08:04:04 +00:00
enums/tests/PHPStan/InvokableCases/Role.php

26 lines
395 B
PHP

<?php
declare(strict_types=1);
namespace ArchTech\Enums\Tests\PHPStan\InvokableCases;
use ArchTech\Enums\InvokableCases;
enum Role
{
use InvokableCases;
case admin;
case manager;
case staff;
public static function administrator(): self
{
return self::admin;
}
public function isManager(): bool
{
return $this === self::manager;
}
}