henzeb/enumhancer

View on GitHub
src/Exceptions/PropertyAlreadyStoredException.php

Summary

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

namespace Henzeb\Enumhancer\Exceptions;

class PropertyAlreadyStoredException extends EnumException
{
    public function __construct(string $enum, string $propertyName)
    {
        parent::__construct(
            sprintf('%s already has a property named `%s`', $enum, $propertyName)
        );
    }
}