BetfairGeneric   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A executeCustomQuery() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Betfair library.
4
 *
5
 * (c) Daniele D'Angeli <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Betfair;
11
12
use Betfair\Adapter\AdapterInterface;
13
use Betfair\Client\BetfairClientInterface;
14
use Betfair\Factory\MarketFilterFactoryInterface;
15
use Betfair\Factory\ParamFactoryInterface;
16
use Betfair\Model\ParamInterface;
17
18
class BetfairGeneric extends AbstractBetfair
19
{
20
    /**
21
     * @param BetfairClientInterface $betfairClient
22
     * @param AdapterInterface $adapter
23
     * @param \Betfair\Factory\ParamFactory|\Betfair\Factory\ParamFactoryInterface $paramFactory
24
     * @param \Betfair\Factory\MarketFilterFactory|\Betfair\Factory\MarketFilterFactoryInterface $marketFilterFactory
25
     */
26
    public function __construct(
27
        BetfairClientInterface $betfairClient,
28
        AdapterInterface $adapter,
29
        ParamFactoryInterface $paramFactory,
30
        MarketFilterFactoryInterface $marketFilterFactory
31
    ) {
32
        parent::__construct($betfairClient, $adapter, $paramFactory, $marketFilterFactory);
33
    }
34
35
    public function executeCustomQuery(ParamInterface $param, $method)
36
    {
37
        return parent::executeCustomQuery($param, $method);
38
    }
39
}
40