1 | <?php |
||
9 | class UpdatesRepository implements Contracts\RepositoryContract |
||
10 | { |
||
11 | /** |
||
12 | * Update Model instance |
||
13 | * |
||
14 | * @var mixed |
||
15 | **/ |
||
16 | public $updates; |
||
17 | /** |
||
18 | * Create a new instance of the UpdatesManager::class |
||
19 | * |
||
20 | **/ |
||
21 | |||
22 | public function __construct(Update $update) |
||
26 | |||
27 | /** |
||
28 | * Return all the available releses |
||
29 | * |
||
30 | * @return mixed Illuminate\Support\Collection |
||
31 | * |
||
32 | **/ |
||
33 | public function releases() |
||
37 | |||
38 | /** |
||
39 | * Get a specific update version |
||
40 | * |
||
41 | * @return object Elimuswift\Core\Update instance |
||
42 | * @param string $version Build version |
||
43 | **/ |
||
44 | public function getRelease($version) |
||
48 | |||
49 | /** |
||
50 | * Get releases later than the provided $version |
||
51 | * |
||
52 | * @return object Illuminate\Support\Collection |
||
53 | * @param string $version Version to compare |
||
54 | **/ |
||
55 | public function laterThan($version) |
||
59 | |||
60 | /** |
||
61 | * Get the latest update version |
||
62 | * |
||
63 | * @return object Elimuswift\Core\Update instance |
||
64 | * |
||
65 | **/ |
||
66 | public function latest() |
||
70 | |||
71 | /** |
||
72 | * Get config properties |
||
73 | * |
||
74 | * @return mixed |
||
75 | **/ |
||
76 | public function config($property) |
||
83 | |||
84 | |||
85 | |||
86 | } |