AbstractRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 0
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Abstract request to fastbill API.
9
 */
10
abstract class AbstractRequest implements RequestInterface
11
{
12
    /**
13
     * @var string
14
     *
15
     * @JMS\Type("string")
16
     * @JMS\SerializedName("SERVICE")
17
     */
18
    protected $service;
19
20
    /**
21
     * Constructor.
22
     */
23 120
    public function __construct()
24
    {
25 120
        $this->service = $this->getService();
26 120
    }
27
}
28