ts3phpframework
Loading...
Searching...
No Matches
ServerQueryException.php
Go to the documentation of this file.
1<?php
2
3namespace PlanetTeamSpeak\TeamSpeak3Framework\Exception;
4
12{
18 protected ?string $return_code;
19
27 public function __construct(string $mesg, int $code = 0x00, $return_code = null)
28 {
29 parent::__construct($mesg, $code);
30
31 $this->return_code = $return_code;
32 }
33
39 public function hasReturnCode(): bool
40 {
41 return $this->return_code !== null;
42 }
43
49 public function getReturnCode(): ?string
50 {
51 return $this->return_code;
52 }
53}
Enhanced exception class for PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter objects.
Enhanced exception class for PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery objects.
__construct(string $mesg, int $code=0x00, $return_code=null)