for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cerbero\LaravelEnum\Concerns;
use Cerbero\LaravelEnum\Enums;
/**
* The trait to handle the magic methods of an enum.
*/
trait IsMagic
{
* Handle the call to an inaccessible enum method.
public static function __callStatic(string $name, array $arguments): mixed
return Enums::handleStaticCall(self::class, $name, $arguments);
}
* Handle the call to an inaccessible case method.
public function __call(string $name, array $arguments): mixed
return Enums::handleCall($this, $name, $arguments);
* Handle the invocation of a case.
public function __invoke(mixed ...$arguments): mixed
return Enums::handleInvoke($this, ...$arguments);