original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Set unserialization mode for undeclared class properties