| 1 | <?php |
||
| 5 | class PushAddress extends Request |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The type according to the Pushbullet API |
||
| 9 | * |
||
| 10 | * @var string $type |
||
| 11 | */ |
||
| 12 | |||
| 13 | protected $type = 'address'; |
||
| 14 | |||
| 15 | 2 | public function __construct($name, $address) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * The address can either be a string or an array, |
||
| 23 | * make sure it's a string in the end |
||
| 24 | * |
||
| 25 | * @param string|array $address |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | |||
| 29 | 2 | protected function setAddress($address) |
|
| 45 | } |
||
| 46 |