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.
Completed
Push — static-map ( 1bc0cf )
by Eric
64:02
created

AbstractJavascriptHelperBuilder   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 3
dl 0
loc 62
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 3
A getFormatter() 0 4 1
A setFormatter() 0 6 1
A getJsonBuilder() 0 4 1
A setJsonBuilder() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMap\Helper\Builder;
13
14
use Ivory\GoogleMap\Helper\Formatter\Formatter;
15
use Ivory\JsonBuilder\JsonBuilder;
16
17
/**
18
 * @author GeLo <[email protected]>
19
 */
20
abstract class AbstractJavascriptHelperBuilder extends AbstractHelperBuilder
21
{
22
    /**
23
     * @var Formatter
24
     */
25
    private $formatter;
26
27
    /**
28
     * @var JsonBuilder
29
     */
30
    private $jsonBuilder;
31
32
    /**
33
     * @param Formatter|null   $formatter
34
     * @param JsonBuilder|null $jsonBuilder
35
     */
36
    public function __construct(Formatter $formatter = null, JsonBuilder $jsonBuilder = null)
37
    {
38
        $this->setFormatter($formatter ?: new Formatter());
39
        $this->setJsonBuilder($jsonBuilder ?: new JsonBuilder());
40
    }
41
42
    /**
43
     * @return Formatter
44
     */
45
    public function getFormatter()
46
    {
47
        return $this->formatter;
48
    }
49
50
    /**
51
     * @param Formatter $formatter
52
     *
53
     * @return $this
54
     */
55
    public function setFormatter(Formatter $formatter)
56
    {
57
        $this->formatter = $formatter;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @return JsonBuilder
64
     */
65
    public function getJsonBuilder()
66
    {
67
        return $this->jsonBuilder;
68
    }
69
70
    /**
71
     * @param JsonBuilder $jsonBuilder
72
     *
73
     * @return $this
74
     */
75
    public function setJsonBuilder(JsonBuilder $jsonBuilder)
76
    {
77
        $this->jsonBuilder = $jsonBuilder;
78
79
        return $this;
80
    }
81
}
82