| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace MGProvision\Proxmox\v2\models;
- /**
- * Class Config
- * @package MGProvision\Proxmox\v2\models
- */
- class Config
- {
- /**
- * @var array
- */
- protected $net = [];
- public function __construct()
- {
- }
- /**
- * @param $network
- * @return $this
- */
- public function setNet($network)
- {
- $this->net = $network;
- return $this;
- }
- /**
- * @return array
- */
- public function toArray()
- {
- $output = [];
- foreach($this->net as $key => $net)
- {
- $output['net'.$key] = $net->asConfig();
- }
- return $output;
- }
- }
|