Completed
Pull Request — master (#6)
by Romain
01:53
created

FcmAdapter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 23
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A send() 0 4 1
A response() 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
class FcmAdapter extends Fcm implements AdapterInterface
8
{
9
10
    /**
11
     * Send the request
12
     *
13
     * @return bool
14
     */
15
    public function send()
16
    {
17
        return $this->_executePush();
18
    }
19
20
    /**
21
     * Display the response of the request
22
     *
23
     * @return \Cake\Http\Client\Response
24
     */
25
    public function response()
26
    {
27
        return $this->response;
28
    }
29
}
30