src/Articus/DataTransfer/Service.php
public function getHydrator(Metadata $metadata)
	{
		if (!isset($this->hydrators[$metadata->className][$metadata->subset]))
		{
			$hydrator = new Hydrator();
			$hydrator
				->setStrategyPluginManager($this->strategyPluginManager)
				->setMetadata($metadata)
			;
			$this->hydrators[$metadata->className][$metadata->subset] = $hydrator;
		}
		return $this->hydrators[$metadata->className][$metadata->subset];
	}
public function getHydrator(Metadata $metadata)
	{
		if (!isset($this->hydrators[$metadata->className][$metadata->subset]))
		{
			$hydrator = new Hydrator();
			$hydrator
				->setStrategyPluginManager($this->strategyPluginManager)
				->setMetadata($metadata)
			;
			$this->hydrators[$metadata->className][$metadata->subset] = $hydrator;
		}
		return $this->hydrators[$metadata->className][$metadata->subset];
	}
public function getHydrator ( Metadata $ metadata ) { if ( ! isset ( $ this -> hydrators [ $ metadata -> className ] [ $ metadata -> subset ] ) ) { $ hydrator = new Hydrator ( ) ; $ hydrator -> setStrategyPluginManager ( $ this -> strategyPluginManager ) -> setMetadata ( $ metadata ) ; $ this -> hydrators [ $ metadata -> className ] [ $ metadata -> subset ] = $ hydrator ; } return $ this -> hydrators [ $ metadata -> className ] [ $ metadata -> subset ] ; }
Returns hydrator required by metadata
@param Metadata $metadata
@return Hydrator
Returns hydrator required by metadata