henzeb/enumhancer

View on GitHub
src/Concerns/MagicCalls.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?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);
    }
}