File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Pavlusha311245 \UnitPhpSdk \Config ;
4
4
5
+ /**
6
+ * Application class
7
+ */
5
8
class Application
6
9
{
7
10
private string $ _type ;
@@ -44,26 +47,40 @@ public function __construct($applicationName, $applicationData)
44
47
}
45
48
46
49
/**
50
+ * Get application arguments
51
+ *
47
52
* @return array
48
53
*/
49
54
public function getArguments (): array
50
55
{
51
56
return array_values ($ this ->_arguments );
52
57
}
53
58
59
+ /**
60
+ * Get application type
61
+ *
62
+ * @return string
63
+ */
54
64
public function getType (): string
55
65
{
56
66
return $ this ->_type ;
57
67
}
58
68
59
69
/**
70
+ * Set application listener
71
+ *
60
72
* @param mixed $listener
61
73
*/
62
74
public function setListener (Listener $ listener ): void
63
75
{
64
76
$ this ->_listeners [$ listener ->getListener ()] = $ listener ;
65
77
}
66
78
79
+ /**
80
+ * Return listener
81
+ *
82
+ * @return array
83
+ */
67
84
public function getListeners (): array
68
85
{
69
86
return $ this ->_listeners ;
@@ -82,11 +99,21 @@ public function getData()
82
99
return $ this ->_data ;
83
100
}
84
101
102
+ /**
103
+ * Get user
104
+ *
105
+ * @return string
106
+ */
85
107
public function getUser (): string
86
108
{
87
109
return $ this ->_user ;
88
110
}
89
111
112
+ /**
113
+ * Get group
114
+ *
115
+ * @return string
116
+ */
90
117
public function getGroup (): string
91
118
{
92
119
return $ this ->_group ;
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ public function __construct(
20
20
}
21
21
22
22
/**
23
+ * Return Listener
24
+ *
23
25
* @param mixed $listener
24
26
*/
25
27
public function setListener (Listener $ listener ): void
@@ -33,13 +35,20 @@ public function getListeners(): array
33
35
}
34
36
35
37
/**
38
+ * Get name
39
+ *
36
40
* @return mixed
37
41
*/
38
42
public function getName ()
39
43
{
40
44
return $ this ->_name ;
41
45
}
42
46
47
+ /**
48
+ * Return RouteBlock (action, match)
49
+ *
50
+ * @return array
51
+ */
43
52
public function getRouteBlocks (): array
44
53
{
45
54
return $ this ->_routeBlocks ;
You can’t perform that action at this time.
0 commit comments