Completed
Pull Request — master (#5)
by
unknown
04:09 queued 01:31
created

GermanyST   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 2
Metric Value
wmc 2
c 2
b 1
f 2
lcom 0
cbo 1
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareHolidays() 0 11 2
1
<?php
2
3
/*
4
 * This file is part of the Holiday Library.
5
 *
6
 * (c) Michał Mańko <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Michalmanko\Holiday\Provider;
13
14
use ArrayObject;
15
16
/**
17
 * Saxony-Anhalt (state of Germany) Holidays Provider.
18
 *
19
 * @author ottowayne <[email protected]>
20
 */
21
class GermanyST extends Germany
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 12
    protected function prepareHolidays($year)
27
    {
28
        /** @var ArrayObject $data */
29 12
        $data = new ArrayObject(parent::prepareHolidays($year));
30
31 12
        $data->append($this->getHolidayEpiphany($year));
32 12
        if ($year != 2017)
33 12
            $data->append($this->getHolidayReformationDay($year));
34
35 12
        return $data;
36
    }
37
}
38