Passed
Push — master ( 50d08e...d7dc61 )
by
unknown
02:43
created

Hook   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A list() 0 4 1
A create() 0 4 1
A update() 0 4 1
1
<?php
2
/**
3
 * Created by Graham Owens ([email protected])
4
 * Company: PartFire Ltd (www.partfire.co.uk)
5
 * Console: Discovery
6
 *
7
 * User:    gra
8
 * Date:    16/01/17
9
 * Time:    14:49
10
 * Project: PartFire MangoPay Bundle
11
 * File:    Hook.php
12
 *
13
 **/
14
15
namespace PartFire\MangoPayBundle\Services;
16
17
use PartFire\MangoPayBundle\Models\HookQueryInterface;
18
19
class Hook implements HookQueryInterface
20
{
21
    private $hookQuery;
22
23
    public function __construct(HookQueryInterface $hookQuery)
24
    {
25
        $this->hookQuery = $hookQuery;
26
    }
27
28
    public function list()
29
    {
30
        return $this->hookQuery->list();
31
    }
32
33
    public function create()
34
    {
35
        // TODO: Implement create() method.
36
    }
37
38
    public function update()
39
    {
40
        // TODO: Implement update() method.
41
    }
42
}