Completed
Push — master ( 59c919...983792 )
by Michael
03:43
created

RequestListenerBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMessageFactory() 0 4 1
1
<?php
2
3
namespace Mdb\PayPal\Ipn\ListenerBuilder\Guzzle;
4
5
use Symfony\Component\HttpFoundation\Request;
6
use Mdb\PayPal\Ipn\ListenerBuilder\GuzzleListenerBuilder;
7
use Mdb\PayPal\Ipn\MessageFactory\RequestMessageFactory;
8
9
class RequestListenerBuilder extends GuzzleListenerBuilder
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    protected function getMessageFactory()
15
    {
16
        return new RequestMessageFactory(Request::createFromGlobals());
17
    }
18
}
19