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.

BaseProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A from() 0 6 1
A to() 0 6 1
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the Thelia package.                                     */
4
/*                                                                                   */
5
/*      Copyright (c) OpenStudio                                                     */
6
/*      email : [email protected]                                                       */
7
/*      web : http://www.thelia.net                                                  */
8
/*                                                                                   */
9
/*      For the full copyright and license information, please view the LICENSE.txt  */
10
/*      file that was distributed with this source code.                             */
11
/*************************************************************************************/
12
13
namespace Thelia\CurrencyConverter\Provider;
14
15
/**
16
 * Class BaseProvider
17
 * @package Thelia\CurrencyConverter\Provider
18
 * @author Manuel Raynaud <[email protected]>
19
 */
20
abstract class BaseProvider implements ProviderInterface
21
{
22
    protected $from;
23
24
    protected $to;
25
26
    /**
27
     *
28
     * The origin currency
29
     *
30
     * @param string $value ISO Code 4217 (example : USD, EUR). See http://fr.wikipedia.org/wiki/ISO_4217
31
     * @return self
32
     */
33
    public function from($value)
34
    {
35
        $this->from = $value;
36
37
        return $this;
38
    }
39
40
    /**
41
     *
42
     * the currency desired
43
     *
44
     * @param string $value ISO Code 4217 (example : USD, EUR). See http://fr.wikipedia.org/wiki/ISO_4217
45
     * @return self
46
     */
47
    public function to($value)
48
    {
49
        $this->to = $value;
50
51
        return $this;
52
    }
53
}
54