Passed
Push — 4-cactus ( 4b4223...fb764e )
by Dante
03:07
created

Publication::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * BEdita, API-first content management framework
4
 * Copyright 2020 ChannelWeb Srl, Chialab Srl
5
 *
6
 * This file is part of BEdita: you can redistribute it and/or modify
7
 * it under the terms of the GNU Lesser General Public License as published
8
 * by the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
12
 */
13
namespace BEdita\Core\Model\Entity;
14
15
/**
16
 * Publication Entity
17
 *
18
 * @property int $id
19
 * @property string|null $public_name
20
 * @property string|null $public_url
21
 * @property string|null $staging_url
22
 * @property string|null $stats_code
23
 */
24
class Publication extends ObjectEntity
25
{
26
    /**
27
     * @inheritDoc
28
     */
29
    public function __construct(array $properties = [], array $options = [])
30
    {
31
        parent::__construct($properties, $options);
32
33
        $this->addNotTranslatable([
34
            'public_url',
35
            'staging_url',
36
            'stats_code',
37
        ]);
38
    }
39
}
40