forked from pingpong-labs/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRepositoryInterface.php
More file actions
96 lines (83 loc) · 1.55 KB
/
Copy pathRepositoryInterface.php
File metadata and controls
96 lines (83 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
namespace Pingpong\Modules\Contracts;
interface RepositoryInterface
{
/**
* Get all modules.
*
* @return mixed
*/
public function all();
/**
* Get cached modules.
*
* @return array
*/
public function getCached();
/**
* Scan & get all available modules.
*
* @return array
*/
public function scan();
/**
* Get modules as modules collection instance.
*
* @return \Pingpong\Modules\Collection
*/
public function toCollection();
/**
* Get scanned paths.
*
* @return array
*/
public function getScanPaths();
/**
* Get list of enabled modules.
*
* @return mixed
*/
public function enabled();
/**
* Get list of disabled modules.
*
* @return mixed
*/
public function disabled();
/**
* Get count from all modules.
*
* @return int
*/
public function count();
/**
* Get all ordered modules.
*
* @return mixed
*/
public function getOrdered();
/**
* Get modules by the given status.
*
* @param int $status
*
* @return mixed
*/
public function getByStatus($status);
/**
* Find a specific module.
*
* @param $name
*
* @return mixed
*/
public function find($name);
/**
* Find a specific module. If there return that, otherwise throw exception.
*
* @param $name
*
* @return mixed
*/
public function findOrFail($name);
}