peakphp/framework

View on GitHub
src/Collection/Exception/ImmutableException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Peak\Collection\Exception;

/**
 * Class ImmutableException
 * @package Peak\Collection\Exception
 */
class ImmutableException extends \Exception
{
    /**
     * ImmutableException constructor.
     *
     * @param string $action
     */
    public function __construct(string $action)
    {
        parent::__construct('properties of immutable object cannot be '.$action);
    }
}