public function setValues($values)
    {
        if ((null !== $values) && (false === is_array($values))) {
            if (false === ($values instanceof ArrayAccess)) {
                throw new InvalidArgumentException(
                    'The value of $values is not an array or an instance of ArrayAccess.'
                );
            }
        }

        $this->values = $values;
    }
public function setValues($values)
    {
        if ((null !== $values) && (false === is_array($values))) {
            if (false === ($values instanceof ArrayAccess)) {
                throw new InvalidArgumentException(
                    'The value of $values is not an array or an instance of ArrayAccess.'
                );
            }
        }

        $this->values = $values;
    }
public function setValues ( $ values ) { if ( ( null !== $ values ) && ( false === is_array ( $ values ) ) ) { if ( false === ( $ values instanceof ArrayAccess ) ) { throw new InvalidArgumentException ( 'The value of $values is not an array or an instance of ArrayAccess.' ) ; } } $ this -> values = $ values ; }
Sets the default replacement values.

@param array|object The replacement values.

@throws InvalidArgumentException If the value is not supported.
Sets the default replacement values .