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

Row::getRegions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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