AffiliateIdModifier   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 9
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A apply() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of GetCake PHP Client.
5
 *
6
 * (c) DraperStudio <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Apivore\GetCake\Request\Modifiers;
13
14
use Apivore\Core\Contracts\HttpClient;
15
use Apivore\Core\Request\Modifier;
16
17
class AffiliateIdModifier extends Modifier
18
{
19
    public function apply()
20
    {
21
        $this->httpClient->addQuery('affiliate_id', $this->httpClient->getConfig('affiliateId'));
22
23
        return $this->httpClient;
24
    }
25
}
26