src/Collection/Exception/ImmutableException.php
<?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);
}
}