File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ class Resource
27
27
/**
28
28
* @var Mta|null
29
29
*/
30
- private $ server ;
30
+ private $ mta ;
31
31
32
- public function __construct (string $ name , Mta $ server = null )
32
+ public function __construct (string $ name , Mta $ mta = null )
33
33
{
34
34
$ this ->name = $ name ;
35
- $ this ->server = $ server ;
35
+ $ this ->mta = $ mta ;
36
36
}
37
37
38
38
public function getName ()
@@ -42,11 +42,11 @@ public function getName()
42
42
43
43
public function call ($ function , ...$ arguments )
44
44
{
45
- if (!$ this ->server ) {
46
- throw new Exception (sprintf ('Resource %s can not be called because server is not defined ' , $ this ->name ));
45
+ if (!$ this ->mta ) {
46
+ throw new Exception (sprintf ('Resource %s can not be called because Mta manager is not defined ' , $ this ->name ));
47
47
}
48
48
49
- return $ this ->server ->callFunction ($ this ->name , $ function , $ arguments );
49
+ return $ this ->mta ->callFunction ($ this ->name , $ function , $ arguments );
50
50
}
51
51
52
52
public function __toString ()
You can’t perform that action at this time.
0 commit comments