public static function classIsImmutable($class) { return new static(sprintf('%s is immutable', $class)); }
/** * Not supported. * * @see http://php.net/arrayaccess.offsetunset * @throws BadMethodCallException */ public function offsetUnset($key) { throw BadMethodCallException::classIsImmutable(__CLASS__); }