src/Concerns/MagicCalls.php
<?php
namespace Henzeb\Enumhancer\Concerns;
use Henzeb\Enumhancer\Helpers\EnumMagicCalls;
trait MagicCalls
{
public static function __callStatic(string $name, array $arguments = []): mixed
{
return EnumMagicCalls::static(self::class, $name, $arguments);
}
public function __call(string $name, array $arguments = []): mixed
{
return EnumMagicCalls::call($this, $name, $arguments);
}
}