Completed
Push — 1.4 ( ff4c92...d193f9 )
by Paweł
15s
created

PublishDestination::getContentLists()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Web Publisher Core Bundle.
7
 *
8
 * Copyright 2017 Sourcefabric z.ú. and contributors.
9
 *
10
 * For the full copyright and license information, please see the
11
 * AUTHORS and LICENSE files distributed with this source code.
12
 *
13
 * @copyright 2017 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\CoreBundle\Model;
18
19
use SWP\Bundle\ContentBundle\Model\RouteInterface;
20
use SWP\Component\Common\Model\TimestampableTrait;
21
use SWP\Component\MultiTenancy\Model\OrganizationAwareTrait;
22
use SWP\Component\Paywall\Model\PaywallSecuredTrait;
23
24
class PublishDestination implements PublishDestinationInterface
25
{
26
    use TimestampableTrait, OrganizationAwareTrait, PaywallSecuredTrait;
27
28
    /**
29
     * @var string
30
     */
31
    protected $id;
32
33
    /**
34
     * @var TenantInterface
35
     */
36
    protected $tenant;
37
38
    /**
39
     * @var RouteInterface
40
     */
41
    protected $route;
42
43
    /**
44
     * @var bool
45
     */
46
    protected $isPublishedFbia = true;
47
48
    /**
49
     * @var bool
50
     */
51
    protected $published = true;
52
53
    /**
54
     * @var string
55
     */
56
    protected $packageGuid;
57
58
    /**
59
     * @var array
60
     */
61
    protected $contentLists = [];
62
63
    /**
64
     * {@inheritdoc}
65
     */
66
    public function getId()
67
    {
68
        return $this->id;
69
    }
70
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public function getTenant()
75
    {
76
        return $this->tenant;
77
    }
78
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function setTenant(TenantInterface $tenant)
83
    {
84
        $this->tenant = $tenant;
85
    }
86
87
    /**
88
     * {@inheritdoc}
89
     */
90
    public function getRoute()
91
    {
92
        return $this->route;
93
    }
94
95
    /**
96
     * {@inheritdoc}
97
     */
98
    public function setRoute(RouteInterface $route)
99
    {
100
        $this->route = $route;
101
    }
102
103
    /**
104
     * {@inheritdoc}
105
     */
106
    public function isPublishedFbia(): bool
107
    {
108
        return $this->isPublishedFbia;
109
    }
110
111
    /**
112
     * {@inheritdoc}
113
     */
114
    public function setIsPublishedFbia(bool $isPublishedFbia): void
115
    {
116
        $this->isPublishedFbia = $isPublishedFbia;
117
    }
118
119
    /**
120
     * {@inheritdoc}
121
     */
122
    public function isPublished(): bool
123
    {
124
        return $this->published;
125
    }
126
127
    /**
128
     * {@inheritdoc}
129
     */
130
    public function setPublished(bool $published): void
131
    {
132
        $this->published = $published;
133
    }
134
135
    /**
136
     * {@inheritdoc}
137
     */
138
    public function getPackageGuid(): ?string
139
    {
140
        return $this->packageGuid;
141
    }
142
143
    /**
144
     * {@inheritdoc}
145
     */
146
    public function setPackageGuid(?string $packageGuid): void
147
    {
148
        $this->packageGuid = $packageGuid;
149
    }
150
151
    public function getContentLists(): array
152
    {
153
        return $this->contentLists;
154
    }
155
156
    public function setContentLists(array $contentLists): void
157
    {
158
        $this->contentLists = $contentLists;
159
    }
160
}
161