Skip to content

Commit c4d9916

Browse files
committed
Changed some var names
1 parent b2a295f commit c4d9916

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/PleskX/Api/Struct/Mail/Forwards.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class Forwards extends \PleskX\Api\Struct
1010
public $id;
1111

1212
/** @var string */
13-
public $name;
13+
public $host;
1414

1515
/** @var string */
16-
public $address;
16+
public $value;
1717

1818
/**
1919
* @param XmlResponse $apiResponse
@@ -23,13 +23,13 @@ public function __construct(XMLResponse $apiResponse)
2323
{
2424
$line = new \stdClass();
2525
$line->id = $apiResponse->id;
26-
$line->name = $apiResponse->name;
27-
$line->address = $apiResponse->forwarding->address;
26+
$line->host = $apiResponse->name;
27+
$line->value = $apiResponse->forwarding->address;
2828

2929
$this->_initScalarProperties($line, [
3030
'id',
31-
'name',
32-
'address',
31+
'host',
32+
'value',
3333
]);
3434
}
3535
}

0 commit comments

Comments
 (0)