GuzzleListenerBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getService() 0 7 1
1
<?php
2
3
namespace Mdb\PayPal\Ipn\ListenerBuilder;
4
5
use GuzzleHttp\Client;
6
use Mdb\PayPal\Ipn\ListenerBuilder;
7
use Mdb\PayPal\Ipn\Service;
8
use Mdb\PayPal\Ipn\Service\GuzzleService;
9
10
abstract class GuzzleListenerBuilder extends ListenerBuilder
11
{
12
    use ModeDependentServiceEndpoint;
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    protected function getService() : Service
18
    {
19
        return new GuzzleService(
20
            new Client(),
21
            $this->getServiceEndpoint()
22
        );
23
    }
24
}
25