Skip to content

Commit 5239a1f

Browse files
Merge pull request plesk#28 from w-vision/plan-name
add plan-name to Webspace Operator
2 parents 3e509cf + 0f38217 commit 5239a1f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/PleskX/Api/Operator/Webspace.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ public function getPhysicalHostingDescriptor()
2828
/**
2929
* @param array $properties
3030
* @param array|null $hostingProperties
31+
* @param $planName
3132
* @return Struct\Info
3233
*/
33-
public function create(array $properties, array $hostingProperties = null)
34+
public function create(array $properties, array $hostingProperties = null, $planName = null)
3435
{
3536
$packet = $this->_client->getPacket();
3637
$info = $packet->addChild($this->_wrapperTag)->addChild('add');
@@ -53,6 +54,10 @@ public function create(array $properties, array $hostingProperties = null)
5354
}
5455
}
5556

57+
if ($planName) {
58+
$info->addChild('plan-name', $planName);
59+
}
60+
5661
$response = $this->_client->request($packet);
5762
return new Struct\Info($response);
5863
}

0 commit comments

Comments
 (0)