1 | <?php |
||
14 | class ResourceTeleporter |
||
15 | { |
||
16 | private $container; |
||
17 | |||
18 | /** |
||
19 | * Constructor |
||
20 | * |
||
21 | * @param TeleporterContainer $container |
||
22 | */ |
||
23 | public function __construct(TeleporterContainer $container) |
||
27 | |||
28 | /** |
||
29 | * Teleports a resource to its target in the context |
||
30 | * |
||
31 | * @param string $context |
||
32 | * @param ZippyResource $resource |
||
33 | * |
||
34 | * @return ResourceTeleporter |
||
35 | */ |
||
36 | public function teleport($context, ZippyResource $resource) |
||
45 | |||
46 | /** |
||
47 | * Creates the ResourceTeleporter with the default TeleporterContainer |
||
48 | * |
||
49 | * @return ResourceTeleporter |
||
50 | */ |
||
51 | public static function create() |
||
55 | } |
||
56 |