Country   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 8 8 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

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\BettingApi\Country;
11
12
use Betfair\Adapter\AdapterInterface;
13
use Betfair\BettingApi\BetfairMarketFilterObject;
14
use Betfair\Client\BetfairClientInterface;
15
use Betfair\Factory\MarketFilterFactoryInterface;
16
use Betfair\Factory\ParamFactoryInterface;
17
18 View Code Duplication
class Country extends BetfairMarketFilterObject
19
{
20
    const API_METHOD_NAME = "listCountries";
21
22
    /**
23
     * @param BetfairClientInterface $betfairClient
24
     * @param AdapterInterface $adapter
25
     * @param ParamFactoryInterface $paramFactory
26
     * @param MarketFilterFactoryInterface $marketFilterFactory
27
     */
28
    public function __construct(
29
        BetfairClientInterface $betfairClient,
30
        AdapterInterface $adapter,
31
        ParamFactoryInterface $paramFactory,
32
        MarketFilterFactoryInterface $marketFilterFactory
33
    ) {
34
        parent::__construct($betfairClient, $adapter, $paramFactory, $marketFilterFactory);
35
    }
36
}
37