1 | <?php |
||
14 | final class SourceSet |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $sources = []; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $newSources = []; |
||
25 | |||
26 | 6 | public function __construct(array $sources = []) |
|
32 | |||
33 | 2 | public function containsSource(SourceInterface $source) : bool |
|
37 | |||
38 | 1 | public function mergeSource(SourceInterface $source) |
|
47 | |||
48 | /** |
||
49 | * @return SourceInterface[] |
||
50 | */ |
||
51 | 2 | public function allSources() : array |
|
55 | |||
56 | /** |
||
57 | * @return SourceInterface[] |
||
58 | */ |
||
59 | public function updatedSources() : array |
||
65 | |||
66 | /** |
||
67 | * @return SourceInterface[] |
||
68 | */ |
||
69 | public function newSources() : array |
||
73 | |||
74 | /** |
||
75 | * Should be called after each loop while watching. |
||
76 | */ |
||
77 | 1 | public function reset() |
|
85 | } |
||
86 |