GuzzleListenerBuilder::getService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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