From b2a295feed7fd52dc14efa49844f3ab93f4717af Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 17 Jan 2018 00:08:55 +0000 Subject: [PATCH] New struct for get --- src/PleskX/Api/Struct/Mail/Forwards.php | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/PleskX/Api/Struct/Mail/Forwards.php diff --git a/src/PleskX/Api/Struct/Mail/Forwards.php b/src/PleskX/Api/Struct/Mail/Forwards.php new file mode 100644 index 00000000..1b01c01e --- /dev/null +++ b/src/PleskX/Api/Struct/Mail/Forwards.php @@ -0,0 +1,35 @@ +id = $apiResponse->id; + $line->name = $apiResponse->name; + $line->address = $apiResponse->forwarding->address; + + $this->_initScalarProperties($line, [ + 'id', + 'name', + 'address', + ]); + } +}