Belgium   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 10

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHolidays() 0 15 1
1
<?php
2
3
namespace HansOtt\Holiday\Calendar;
4
5
use HansOtt\Holiday\Calendar;
6
7
final class Belgium implements Calendar
8
{
9 2
    public function getHolidays(Year $year)
10
    {
11
        return [
12 2
            new Belgium\NewYearsDay($year),
13 2
            new Belgium\EasterMonday($year),
14 2
            new Belgium\LabourDay($year),
15 2
            new Belgium\AscensionDay($year),
16 2
            new Belgium\WhitMonday($year),
17 2
            new Belgium\IndependenceDay($year),
18 2
            new Belgium\AssumptionOfMary($year),
19 2
            new Belgium\AllSaints($year),
20 2
            new Belgium\ArmisticeDay($year),
21 2
            new Belgium\ChristmasDay($year),
22 2
        ];
23
    }
24
}
25