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

FcmAdapter   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApiUrl() 0 4 1
A getHttpData() 0 4 1
A getHttpOptions() 0 4 1
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