Completed
Push — ezp-30616 ( 0a36b6 )
by
unknown
21:15 queued 06:15
created

getObjectStateGroupUpdateStruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\Event\ObjectState;
10
11
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup;
12
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct;
13
use eZ\Publish\Core\Event\BeforeEvent;
14
15
final class BeforeUpdateObjectStateGroupEvent extends BeforeEvent
16
{
17
    public const NAME = 'ezplatform.event.object_state_group.update.before';
18
19
    /**
20
     * @var \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup
21
     */
22
    private $objectStateGroup;
23
24
    /**
25
     * @var \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct
26
     */
27
    private $objectStateGroupUpdateStruct;
28
29
    public function __construct(
30
        ObjectStateGroup $objectStateGroup,
31
        ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct
32
    ) {
33
        $this->objectStateGroup = $objectStateGroup;
34
        $this->objectStateGroupUpdateStruct = $objectStateGroupUpdateStruct;
35
    }
36
37
    public function getObjectStateGroup(): ObjectStateGroup
38
    {
39
        return $this->objectStateGroup;
40
    }
41
42
    public function getObjectStateGroupUpdateStruct(): ObjectStateGroupUpdateStruct
43
    {
44
        return $this->objectStateGroupUpdateStruct;
45
    }
46
}
47