1 | <?php |
||
26 | class ConverterPooler extends ClientPooler |
||
27 | { |
||
28 | protected $converter_holder; |
||
29 | |||
30 | /** |
||
31 | * __construct |
||
32 | * |
||
33 | * Instantiate converter pooler. |
||
34 | * |
||
35 | * @param ConverterHolder $converter_holder |
||
36 | */ |
||
37 | public function __construct(ConverterHolder $converter_holder) |
||
41 | |||
42 | /** |
||
43 | * getPoolerType |
||
44 | * |
||
45 | * @see ClientPoolerInterface |
||
46 | */ |
||
47 | public function getPoolerType() |
||
51 | |||
52 | /** |
||
53 | * getClient |
||
54 | * |
||
55 | * @see ClientPoolerInterface |
||
56 | */ |
||
57 | public function getClient($identifier) |
||
65 | |||
66 | /** |
||
67 | * createClient |
||
68 | * |
||
69 | * Check in the converter holder if the type has an associated converter. |
||
70 | * If not, an exception is thrown. |
||
71 | * |
||
72 | * @see ClientPooler |
||
73 | * @throws ConverterException |
||
74 | */ |
||
75 | public function createClient($identifier) |
||
91 | |||
92 | /** |
||
93 | * getConverterHolder |
||
94 | * |
||
95 | * Expose converter holder so one can add new converters on the fly. |
||
96 | * |
||
97 | * @return ConverterHolder |
||
98 | */ |
||
99 | public function getConverterHolder() |
||
103 | } |
||
104 |