GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TradeabilityWrapper::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Octante\UpsAPIBundle\Library;
4
5
/*
6
 * This file is part of the UpsAPIBundle package.
7
 *
8
 * (c) Issel Guberna <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
use SimpleXMLElement;
15
use Ups\Entity\Tradeability\LandedCostRequest;
16
use Ups\RequestInterface;
17
use Ups\Tradeability;
18
19
class TradeabilityWrapper
20
{
21
    /**
22
     * @var \Ups\Tradeability
23
     */
24
    private $upsTradeability;
25
26
    /**
27
     * Shipping constructor.
28
     *
29
     * @param Tradeability $upsTradeability
30
     */
31
    public function __construct(Tradeability $upsTradeability)
32
    {
33
        $this->upsTradeability = $upsTradeability;
34
    }
35
    /**
36
     * @param LandedCostRequest $request
37
     *
38
     * @return SimpleXmlElement
39
     *
40
     * @throws \Exception
41
     */
42
    public function getLandedCosts(LandedCostRequest $request)
43
    {
44
        $this->upsTradeability->getLandedCosts($request);
45
    }
46
47
    /**
48
     * @return RequestInterface
49
     */
50
    public function getRequest()
51
    {
52
        return $this->upsTradeability->getRequest();
53
    }
54
55
    /**
56
     * @param RequestInterface $request
57
     *
58
     * @return $this
59
     */
60
    public function setRequest(RequestInterface $request)
61
    {
62
        $this->upsTradeability->setRequest($request);
63
64
        return $this;
65
    }
66
}
67