forked from ezsystems/PlatformUIBundle
/
EnrichedSection.php
63 lines (55 loc) · 1.35 KB
/
EnrichedSection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* File containing the EnrichedSection class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
*/
namespace EzSystems\PlatformUIBundle\Entity;
use eZ\Publish\API\Repository\Values\Content\Section;
/**
* Class EnrichedSection
*
* This class is a container for a Section and extra information
*
* @package EzSystems\PlatformUIBundle\Entity
*/
class EnrichedSection
{
/**
* @var \eZ\Publish\API\Repository\Values\Content\Section
*/
public $section;
/**
* @var int
*/
public $contentCount;
/**
* @var bool
*/
public $canEdit;
/**
* @var bool
*/
public $canDelete;
/**
* @var bool
*/
public $canAssign;
/**
* @param \eZ\Publish\API\Repository\Values\Content\Section $section
* @param int $contentCount
* @param bool $canEdit
* @param bool $canDelete
* @param bool $canAssign
*/
public function __construct( Section $section, $contentCount, $canEdit, $canDelete, $canAssign )
{
$this->section = $section;
$this->contentCount = $contentCount;
$this->canEdit = $canEdit;
$this->canDelete = $canDelete;
$this->canAssign = $canAssign;
}
}