| 1 | <?php |
||
| 13 | class Instance |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string the name of the instance |
||
| 18 | */ |
||
| 19 | private $_name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var Tvheadend the actual tvheadend instance |
||
| 23 | */ |
||
| 24 | private $_instance; |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * Instance constructor. |
||
| 29 | * |
||
| 30 | * @param string $name |
||
| 31 | * @param string $address |
||
| 32 | * @param int $port |
||
| 33 | */ |
||
| 34 | public function __construct($name, $address, $port) |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getName() |
||
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * Sets the credentials to use |
||
| 54 | * |
||
| 55 | * @param $username |
||
| 56 | * @param $password |
||
| 57 | */ |
||
| 58 | public function setCredentials($username, $password) |
||
| 62 | |||
| 63 | |||
| 64 | /** |
||
| 65 | * @return Tvheadend |
||
| 66 | */ |
||
| 67 | public function getInstance() |
||
| 71 | |||
| 72 | } |
||
| 73 |