| 1 | <?php |
||
| 9 | class Device |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected $deviceId; |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $key; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string $secret |
||
| 22 | */ |
||
| 23 | protected $secret; |
||
| 24 | /** |
||
| 25 | * @var string $name |
||
| 26 | */ |
||
| 27 | protected $name; |
||
| 28 | /** |
||
| 29 | * @var array $attributes |
||
| 30 | */ |
||
| 31 | protected $attributes; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param int $deviceId |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function setDeviceId($deviceId) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return int |
||
| 46 | */ |
||
| 47 | public function getDeviceId() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getKey() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $key |
||
| 62 | * |
||
| 63 | * @return Device |
||
| 64 | */ |
||
| 65 | public function setKey($key) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | public function getSecret() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @param string $secret |
||
| 82 | * |
||
| 83 | * @return $this |
||
| 84 | */ |
||
| 85 | public function setSecret($secret) |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @return string |
||
| 94 | */ |
||
| 95 | public function getName() |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @param string $name |
||
| 102 | * |
||
| 103 | * @return $this |
||
| 104 | */ |
||
| 105 | public function setName($name) |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @return array |
||
| 114 | */ |
||
| 115 | public function getAttributes() |
||
| 119 | |||
| 120 | /** |
||
| 121 | * @param array $attributes |
||
| 122 | * |
||
| 123 | * @return $this |
||
| 124 | */ |
||
| 125 | public function setAttributes($attributes) |
||
| 131 | } |
||
| 132 |