Completed
Push — development ( b626b0...ff940a )
by Thomas
16s
created

PageStruct::getPageEntity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Oc\Page;
4
5
use Oc\Page\Persistence\BlockEntity;
6
use Oc\Page\Persistence\PageEntity;
7
8
/**
9
 * Class PageStruct
10
 *
11
 * @package Oc\Page
12
 */
13
class PageStruct
14
{
15
    /**
16
     * @var PageEntity
17
     */
18
    private $pageEntity;
19
20
    /**
21
     * @var BlockEntity[]
22
     */
23
    private $blockEntities;
24
25
    /**
26
     * @var bool
27
     */
28
    private $isFallback;
29
30
    /**
31
     * @var string
32
     */
33
    private $locale;
34
35
    /**
36
     * @var string
37
     */
38
    private $fallbackLocale;
39
40
    /**
41
     * PageStruct constructor.
42
     *
43
     * @param PageEntity $pageEntity
44
     * @param BlockEntity[] $blockEntities
45
     * @param string $locale
46
     * @param string $fallbackLocale
47
     * @param bool $isFallback
48
     */
49
    public function __construct(PageEntity $pageEntity, array $blockEntities, $locale, $fallbackLocale, $isFallback)
50
    {
51
        $this->pageEntity = $pageEntity;
52
        $this->blockEntities = $blockEntities;
53
        $this->isFallback = $isFallback;
54
        $this->locale = $locale;
55
        $this->fallbackLocale = $fallbackLocale;
56
    }
57
58
    /**
59
     * @return PageEntity
60
     */
61
    public function getPageEntity()
62
    {
63
        return $this->pageEntity;
64
    }
65
66
    /**
67
     * @return BlockEntity[]
68
     */
69
    public function getBlockEntities()
70
    {
71
        return $this->blockEntities;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getLocale()
78
    {
79
        return $this->locale;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getFallbackLocale()
86
    {
87
        return $this->fallbackLocale;
88
    }
89
90
    /**
91
     * @return bool
92
     */
93
    public function isFallback()
94
    {
95
        return $this->isFallback;
96
    }
97
}
98