1018. Class

1018.1. Zend\Stdlib\Hydrator\ClassMethods

1018.1.1. Methods

1018.1.1.1. __construct

__construct()

Define if extract values will use camel case or name with underscore

Parameters:bool|array

1018.1.1.2. setOptions

setOptions()

@param array|Traversable $options

Return type:ClassMethods
Throws :ExceptionInvalidArgumentException

1018.1.1.3. setUnderscoreSeparatedKeys

setUnderscoreSeparatedKeys()

@param boolean $underscoreSeparatedKeys

Return type:ClassMethods

1018.1.1.4. getUnderscoreSeparatedKeys

getUnderscoreSeparatedKeys()

@return boolean

1018.1.1.5. extract

extract()

Extract values from an object with class methods

Extracts the getter/setter of the given $object.

Parameters:object
Return type:array
Throws :ExceptionBadMethodCallException for a non-object $object

1018.1.1.6. hydrate

hydrate()

Hydrate an object by populating getter/setter methods

Hydrates an object by getter/setter methods of the object.

Parameters:
  • array
  • object
Return type:

object

Throws :

ExceptionBadMethodCallException for a non-object $object