all-in-one/php/src/Container/ContainerPorts.php

19 lines
341 B
PHP
Raw Normal View History

2021-11-30 11:20:42 +01:00
<?php
namespace AIO\Container;
class ContainerPorts {
/** @var ContainerPort[] */
2021-11-30 11:20:42 +01:00
private array $ports = [];
public function AddPort(ContainerPort $port) : void {
2021-11-30 11:20:42 +01:00
$this->ports[] = $port;
}
/**
* @return ContainerPort[]
2021-11-30 11:20:42 +01:00
*/
public function GetPorts() : array {
return $this->ports;
}
}