Completed
Push — 5.6 ( 679697...f4d50c )
by Jeroen
16:35 queued 10:49
created

Row   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRegions() 0 4 1
A setRegions() 0 4 1
1
<?php
2
3
namespace Kunstmaan\PagePartBundle\PageTemplate;
4
5
/**
6
 * Definition of a row in a page template
7
 */
8
class Row
9
{
10
    /**
11
     * @var Region[]
12
     */
13
    protected $regions;
14
15
    /**
16
     * @param Region[] $regions
17
     */
18 2
    public function __construct(array $regions)
19
    {
20 2
        $this->setRegions($regions);
21 2
    }
22
23
    /**
24
     * @return Region[]
25
     */
26
    public function getRegions()
27
    {
28
        return $this->regions;
29
    }
30
31 2
    public function setRegions(array $regions)
32
    {
33 2
        $this->regions = $regions;
34 2
    }
35
}
36