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

GermanyBW::prepareHolidays()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
crap 1
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
 * Baden-Württemberg (state of Germany) Holidays Provider.
18
 *
19
 * @author ottowayne <[email protected]>
20
 */
21
class GermanyBW extends Germany
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 13
    protected function prepareHolidays($year)
27
    {
28
        /** @var ArrayObject $data */
29 13
        $data = new ArrayObject(parent::prepareHolidays($year));
30
31 13
        $data->append($this->getHolidayEpiphany($year));
32 13
        $data->append($this->getHolidayCorpusChristi($year));
33 13
        $data->append($this->getHolidayAllSaintsDay($year));
34
        
35 13
        return $data;
36
    }
37
}
38