Stringy\Stringy::offsetSet PHP Метод

offsetSet() публичный метод

Implements part of the ArrayAccess interface, but throws an exception when called. This maintains the immutability of Stringy objects.
public offsetSet ( mixed $offset, mixed $value )
$offset mixed The index of the character
$value mixed Value to set
    public function offsetSet($offset, $value)
    {
        // Stringy is immutable, cannot directly set char
        throw new Exception('Stringy object is immutable, cannot modify char');
    }