Completed
Pull Request — master (#8)
by Romain
04:20
created

FcmAdapter::getHttpOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace ker0x\Push\Adapter;
3
4
use ker0x\Push\AdapterInterface;
5
use ker0x\Push\Adapter\Fcm\Fcm;
6
7
/**
8
 * Class FcmAdapter
9
 * @package ker0x\Push\Adapter
10
 */
11
class FcmAdapter extends Fcm implements AdapterInterface
12
{
13
14
    /**
15
     * @return string
16
     */
17
    public function getApiUrl()
18
    {
19
        return $this->config('api.url');
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getHttpData()
26
    {
27
        return $this->_getMessage();
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getHttpOptions()
34
    {
35
        return $this->_getHttpOptions();
36
    }
37
}
38