1 | <?php |
||
12 | class GenericTeleporter implements TeleporterInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var ResourceReaderFactory |
||
16 | */ |
||
17 | private $readerFactory; |
||
18 | |||
19 | /** |
||
20 | * @var ResourceWriter |
||
21 | */ |
||
22 | private $resourceWriter; |
||
23 | |||
24 | /** |
||
25 | * @var ResourceLocator |
||
26 | */ |
||
27 | private $resourceLocator; |
||
28 | |||
29 | /** |
||
30 | * @param ResourceReaderFactory $readerFactory |
||
31 | * @param ResourceWriter $resourceWriter |
||
32 | * @param ResourceLocator $resourceLocator |
||
33 | */ |
||
34 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * Teleports a file from a destination to an other |
||
46 | * |
||
47 | * @param ZippyResource $resource A Resource |
||
48 | * @param string $context The current context |
||
49 | * |
||
50 | * @throws IOException when file could not be written on local |
||
51 | * @throws InvalidArgumentException when path to file is not valid |
||
52 | */ |
||
53 | public function teleport(ZippyResource $resource, $context) |
||
60 | } |
||
61 |