Skip to content

Commit 4c0f560

Browse files
committed
Change variable's name to its respective class type
1 parent 5363bf7 commit 4c0f560

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Model/Resource.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ class Resource
2727
/**
2828
* @var Mta|null
2929
*/
30-
private $server;
30+
private $mta;
3131

32-
public function __construct(string $name, Mta $server = null)
32+
public function __construct(string $name, Mta $mta = null)
3333
{
3434
$this->name = $name;
35-
$this->server = $server;
35+
$this->mta = $mta;
3636
}
3737

3838
public function getName()
@@ -42,11 +42,11 @@ public function getName()
4242

4343
public function call($function, ...$arguments)
4444
{
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));
4747
}
4848

49-
return $this->server->callFunction($this->name, $function, $arguments);
49+
return $this->mta->callFunction($this->name, $function, $arguments);
5050
}
5151

5252
public function __toString()

0 commit comments

Comments
 (0)