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.

SwatchValue::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 4
1
<?php
2
3
namespace Magium\Magento\Extractors\Catalog\Product;
4
5
use Facebook\WebDriver\WebDriverElement;
6
7
class SwatchValue extends Value
8
{
9
10
    protected $url;
11
    protected $available;
12
13
    public function __construct(
14
        $text,
15
        WebDriverElement $clickElement,
16
        $available,
17
        $url = null
18
    )
19
    {
20
        parent::__construct($text, $clickElement);
21
        $this->available = $available;
22
        $this->url = $url;
23
    }
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getAvailable()
29
    {
30
        return $this->available;
31
    }
32
33
    /**
34
     * @return null
35
     */
36
    public function getUrl()
37
    {
38
        return $this->url;
39
    }
40
41
42
}