1: <?php
2:
3: namespace malkusch\bav;
4:
5: /**
6: * Container for FileDataBackend objects.
7: *
8: * @author Markus Malkusch <markus@malkusch.de>
9: * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations
10: * @license GPL
11: * @see DataBackend
12: * @api
13: */
14: class FileDataBackendContainer extends DataBackendContainer
15: {
16:
17: /**
18: * @var string
19: */
20: private $file;
21:
22: /**
23: * Sets the path for the backend.
24: *
25: * @param string $file Path to the bundesbank file
26: */
27: public function __construct($file = null)
28: {
29: $this->file = $file;
30: }
31:
32: /**
33: * Returns the unconfigured backend which is only created by calling the
34: * constructor.
35: *
36: * @return FileDataBackend
37: */
38: protected function makeDataBackend()
39: {
40: return new FileDataBackend($this->file);
41: }
42: }
43: