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

GermanyHH::prepareHolidays()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
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
 * Hamburg (state of Germany) Holidays Provider.
18
 *
19
 * @author ottowayne <[email protected]>
20
 */
21
class GermanyHH extends Germany
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 10
    protected function prepareHolidays($year)
27
    {
28
        /** @var ArrayObject $data */
29 10
        $data = new ArrayObject(parent::prepareHolidays($year));
30
31 10
        return $data;
32
    }
33
}
34