public function setUnserializeUndeclaredPropertyMode($value)
    {
        $availableOptions = [
            static::UNDECLARED_PROPERTY_MODE_SET,
            static::UNDECLARED_PROPERTY_MODE_IGNORE,
            static::UNDECLARED_PROPERTY_MODE_EXCEPTION
        ];
        if (!in_array($value, $availableOptions)) {
            throw new InvalidArgumentException('Invalid value.');
        }
        $this->undefinedAttributeMode = $value;
        return $this;
    }
public function setUnserializeUndeclaredPropertyMode($value)
    {
        $availableOptions = [
            static::UNDECLARED_PROPERTY_MODE_SET,
            static::UNDECLARED_PROPERTY_MODE_IGNORE,
            static::UNDECLARED_PROPERTY_MODE_EXCEPTION
        ];
        if (!in_array($value, $availableOptions)) {
            throw new InvalidArgumentException('Invalid value.');
        }
        $this->undefinedAttributeMode = $value;
        return $this;
    }
public function setUnserializeUndeclaredPropertyMode ( $ value ) { $ availableOptions = [ static :: UNDECLARED_PROPERTY_MODE_SET , static :: UNDECLARED_PROPERTY_MODE_IGNORE , static :: UNDECLARED_PROPERTY_MODE_EXCEPTION ] ; if ( ! in_array ( $ value , $ availableOptions ) ) { throw new InvalidArgumentException ( 'Invalid value.' ) ; } $ this -> undefinedAttributeMode = $ value ; return $ this ; }
Set unserialization mode for undeclared class properties

@param  integer $value One of the JsonSerializer::UNDECLARED_PROPERTY_MODE_*
@return self
@throws InvalidArgumentException When the value is not one of the UNDECLARED_PROPERTY_MODE_* options
Set unserialization mode for undeclared class properties