1 | <?php |
||
17 | class ResourceCollection extends ArrayCollection |
||
18 | { |
||
19 | private $context; |
||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $temporary; |
||
24 | |||
25 | /** |
||
26 | * Constructor |
||
27 | * @param string $context |
||
28 | * @param Resource[] $elements An array of Resource |
||
29 | * @param bool $temporary |
||
30 | */ |
||
31 | public function __construct($context, array $elements, $temporary) |
||
43 | |||
44 | /** |
||
45 | * Returns the context related to the collection |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getContext() |
||
53 | |||
54 | /** |
||
55 | * Tells whether the collection is temporary or not. |
||
56 | * |
||
57 | * A ResourceCollection is temporary when it required a temporary folder to |
||
58 | * fetch data |
||
59 | * |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function isTemporary() |
||
66 | |||
67 | /** |
||
68 | * Returns true if all resources can be processed in place, false otherwise |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function canBeProcessedInPlace() |
||
89 | } |
||
90 |