| 1 | <?php |
||
| 8 | class HydratorFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $cacheDir; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | private $generateProxies; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor. |
||
| 22 | * |
||
| 23 | * @param string $cacheDir |
||
| 24 | * @param bool $generateProxies |
||
| 25 | */ |
||
| 26 | 27 | public function __construct($cacheDir, $generateProxies = false) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Gets an hydrator instance for the given class. |
||
| 34 | * |
||
| 35 | * @param string $fqcn |
||
| 36 | * |
||
| 37 | * @return HydratorInterface |
||
| 38 | */ |
||
| 39 | 9 | public function getHydrator($fqcn) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Gets the hydrator class name. |
||
| 48 | * |
||
| 49 | * @param string $fqcn |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 12 | public function getHydratorClassName($fqcn) |
|
| 61 | } |
||
| 62 |