public function toArray()
    {
        return array_merge([
            'user' => $this->key,
            'device' => implode(',', $this->devices),
        ], $this->token ? ['token' => $this->token] : []);
    }
public function toArray()
    {
        return array_merge([
            'user' => $this->key,
            'device' => implode(',', $this->devices),
        ], $this->token ? ['token' => $this->token] : []);
    }
public function toArray ( ) { return array_merge ( [ 'user' => $ this -> key , 'device' => implode ( ',' , $ this -> devices ) , ] , $ this -> token ? [ 'token' => $ this -> token ] : [ ] ) ; }
Get array representation of Pushover receiver.

@return array
Get array representation of Pushover receiver .