henzeb/enumhancer

View on GitHub
src/Exceptions/InvalidBitmaskEnum.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Henzeb\Enumhancer\Exceptions;

class InvalidBitmaskEnum extends EnumException
{
    public function __construct(string $expected, int|string $given)
    {
        parent::__construct(
            sprintf(
                'invalid mask for `%s`. `%s` given',
                $expected,
                $given
            )
        );
    }
}