1 | <?php |
||
8 | class FileTransport extends AbstractTransport |
||
9 | { |
||
10 | /** |
||
11 | * @inheritdoc |
||
12 | */ |
||
13 | 66 | public function __construct(Connection $conn, $destination = null, EventDispatcherInterface $dispatcher = null) |
|
25 | |||
26 | /** |
||
27 | * Factory method. |
||
28 | * |
||
29 | * @param string $file |
||
30 | * |
||
31 | * @return FileTransport |
||
32 | */ |
||
33 | 62 | public static function create($file) |
|
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | 12 | public function __toString() |
|
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | 40 | public function getLastModifiedDate() |
|
53 | |||
54 | /** |
||
55 | * @return int |
||
56 | */ |
||
57 | 2 | public function getSize() |
|
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | 4 | public function getFilename() |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 46 | public function getDefaultDestination() |
|
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | 8 | protected function doFetch($destination) |
|
96 | } |
||
97 |