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

GermanyMV::prepareHolidays()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

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