| 1 | <?php |
||
| 22 | trait IntegerPortTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Port. |
||
| 26 | * |
||
| 27 | * @var integer |
||
| 28 | */ |
||
| 29 | protected $port; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the port. |
||
| 33 | * |
||
| 34 | * @return integer Returns the port. |
||
| 35 | */ |
||
| 36 | public function getPort() { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the port. |
||
| 42 | * |
||
| 43 | * @param integer $port The port. |
||
| 44 | * @throws InvalidArgumentException Throws an invalid argument exception if the port is not between 1 and 65536. |
||
| 45 | */ |
||
| 46 | public function setPort($port) { |
||
| 53 | } |
||
| 54 |