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 — symbol ( 74f22f )
by Eric
63:49
created

IconSequenceCollector::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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\Collector\Overlay;
13
14
use Ivory\GoogleMap\Helper\Collector\AbstractCollector;
15
use Ivory\GoogleMap\Map;
16
use Ivory\GoogleMap\Overlay\IconSequence;
17
18
/**
19
 * @author GeLo <[email protected]>
20
 */
21
class IconSequenceCollector extends AbstractCollector
22
{
23
    /**
24
     * @var PolylineCollector
25
     */
26
    private $polylineCollector;
27
28
    /**
29
     * @param PolylineCollector $polylineCollector
30
     */
31
    public function __construct(PolylineCollector $polylineCollector)
32
    {
33
        $this->setPolylineCollector($polylineCollector);
34
    }
35
36
    /**
37
     * @return PolylineCollector
38
     */
39
    public function getPolylineCollector()
40
    {
41
        return $this->polylineCollector;
42
    }
43
44
    /**
45
     * @param PolylineCollector $polylineCollector
46
     */
47
    public function setPolylineCollector(PolylineCollector $polylineCollector)
48
    {
49
        $this->polylineCollector = $polylineCollector;
50
    }
51
52
    /**
53
     * @param Map            $map
54
     * @param IconSequence[] $icons
55
     *
56
     * @return IconSequence[]
57
     */
58
    public function collect(Map $map, array $icons = [])
59
    {
60
        foreach ($this->polylineCollector->collect($map) as $polyline) {
61
            if ($polyline->hasIconSequences()) {
62
                $icons = $this->collectValues($polyline->getIconSequences());
63
            }
64
        }
65
66
        return $icons;
67
    }
68
}
69