src/View/Mustache/DateTimeHelpers.php
public function offsetSet($key, $value)
    {
        if (!is_string($key)) {
            throw new InvalidArgumentException('The name of the macro must be a string.');
        }

        if (!is_callable($value)) {
            throw new InvalidArgumentException('The macro must be a callable value.');
        }

        $this->macros[$key] = $value;
    }
public function offsetSet($key, $value)
    {
        if (!is_string($key)) {
            throw new InvalidArgumentException('The name of the macro must be a string.');
        }

        if (!is_callable($value)) {
            throw new InvalidArgumentException('The macro must be a callable value.');
        }

        $this->macros[$key] = $value;
    }
public function offsetSet ( $ key , $ value ) { if ( ! is_string ( $ key ) ) { throw new InvalidArgumentException ( 'The name of the macro must be a string.' ) ; } if ( ! is_callable ( $ value ) ) { throw new InvalidArgumentException ( 'The macro must be a callable value.' ) ; } $ this -> macros [ $ key ] = $ value ; }
Set the macro at a given offset.

@param  mixed $key   The name of the macro.
@param  mixed $value The macro's effect.
@throws InvalidArgumentException If the $key or $value are invalid.
@return void
Set the macro at a given offset .