protected function extractValue(ModelStubInterface $model, $name, $value, $extractName = true)
    {
        $modelHydrator = $model->getHydrator();
        if (!$modelHydrator || !method_exists($modelHydrator, 'extractValue')) {
            throw new Exception\RuntimeException(
                'Model hydrator must be set and must have extractValue() method ' .
                'in order extract a single value'
                );
        }

        if ($extractName) {
            $name = $this->extractName($model, $name);
        }

        return $modelHydrator->extractValue($name, $value);
    }
protected function extractValue(ModelStubInterface $model, $name, $value, $extractName = true)
    {
        $modelHydrator = $model->getHydrator();
        if (!$modelHydrator || !method_exists($modelHydrator, 'extractValue')) {
            throw new Exception\RuntimeException(
                'Model hydrator must be set and must have extractValue() method ' .
                'in order extract a single value'
                );
        }

        if ($extractName) {
            $name = $this->extractName($model, $name);
        }

        return $modelHydrator->extractValue($name, $value);
    }
protected function extractValue ( ModelStubInterface $ model , $ name , $ value , $ extractName = true ) { $ modelHydrator = $ model -> getHydrator ( ) ; if ( ! $ modelHydrator || ! method_exists ( $ modelHydrator , 'extractValue' ) ) { throw new Exception \ RuntimeException ( 'Model hydrator must be set and must have extractValue() method ' . 'in order extract a single value' ) ; } if ( $ extractName ) { $ name = $ this -> extractName ( $ model , $ name ) ; } return $ modelHydrator -> extractValue ( $ name , $ value ) ; }
Extract a value in order to be used within datagateway context

If $extractName is false, $name must be in the datagateway context,
otherwise $name will be converted using extractName().

@param ModelStubInterface $model
@param string $name
@param string $value
@param bool $extractName
@throws Exception\RuntimeException
Extract a value in order to be used within datagateway context