Completed
Push — signal-slots ( 93c761...7bf977 )
by
unknown
17:56
created

ObjectStateService::updateObjectStateGroup()   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 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace eZ\Publish\Core\Event;
6
7
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
8
use eZ\Publish\API\Repository\ObjectStateService as ObjectStateServiceInterface;
9
use eZ\Publish\API\Repository\Values\Content\ContentInfo;
10
use eZ\Publish\API\Repository\Values\ObjectState\ObjectState;
11
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateCreateStruct;
12
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup;
13
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupCreateStruct;
14
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroupUpdateStruct;
15
use eZ\Publish\API\Repository\Values\ObjectState\ObjectStateUpdateStruct;
16
17
class ObjectStateService implements ObjectStateServiceInterface
18
{
19
    /** @var Symfony\Component\EventDispatcher\EventDispatcherInterface */
20
    protected $eventDispatcher;
21
22
    public function __construct(ObjectStateServiceInterface $innerService, EventDispatcherInterface $eventDispatcher)
0 ignored issues
show
Unused Code introduced by
The parameter $innerService is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
        parent::__construct($innerRepository);
0 ignored issues
show
Bug introduced by
The variable $innerRepository does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
25
26
        $this->eventDispatcher = $eventDispatcher;
0 ignored issues
show
Documentation Bug introduced by
It seems like $eventDispatcher of type object<Symfony\Component...entDispatcherInterface> is incompatible with the declared type object<eZ\Publish\Core\E...entDispatcherInterface> of property $eventDispatcher.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
27
    }
28
29
    public function createObjectStateGroup(ObjectStateGroupCreateStruct $objectStateGroupCreateStruct)
30
    {
31
        parent::createObjectStateGroup($objectStateGroupCreateStruct);
32
    }
33
34
    public function loadObjectStateGroup($objectStateGroupId, array $prioritizedLanguages = [])
35
    {
36
        parent::loadObjectStateGroup($objectStateGroupId, $prioritizedLanguages);
37
    }
38
39
    public function loadObjectStateGroups($offset = 0, $limit = -1, array $prioritizedLanguages = [])
40
    {
41
        parent::loadObjectStateGroups($offset, $limit, $prioritizedLanguages);
42
    }
43
44
    public function loadObjectStates(ObjectStateGroup $objectStateGroup, array $prioritizedLanguages = [])
45
    {
46
        parent::loadObjectStates($objectStateGroup, $prioritizedLanguages);
47
    }
48
49
    public function updateObjectStateGroup(ObjectStateGroup $objectStateGroup, ObjectStateGroupUpdateStruct $objectStateGroupUpdateStruct)
50
    {
51
        parent::updateObjectStateGroup($objectStateGroup, $objectStateGroupUpdateStruct);
52
    }
53
54
    public function deleteObjectStateGroup(ObjectStateGroup $objectStateGroup)
55
    {
56
        parent::deleteObjectStateGroup($objectStateGroup);
57
    }
58
59
    public function createObjectState(ObjectStateGroup $objectStateGroup, ObjectStateCreateStruct $objectStateCreateStruct)
60
    {
61
        parent::createObjectState($objectStateGroup, $objectStateCreateStruct);
62
    }
63
64
    public function loadObjectState($stateId, array $prioritizedLanguages = [])
65
    {
66
        parent::loadObjectState($stateId, $prioritizedLanguages);
67
    }
68
69
    public function updateObjectState(ObjectState $objectState, ObjectStateUpdateStruct $objectStateUpdateStruct)
70
    {
71
        parent::updateObjectState($objectState, $objectStateUpdateStruct);
72
    }
73
74
    public function setPriorityOfObjectState(ObjectState $objectState, $priority)
75
    {
76
        parent::setPriorityOfObjectState($objectState, $priority);
77
    }
78
79
    public function deleteObjectState(ObjectState $objectState)
80
    {
81
        parent::deleteObjectState($objectState);
82
    }
83
84
    public function setContentState(ContentInfo $contentInfo, ObjectStateGroup $objectStateGroup, ObjectState $objectState)
85
    {
86
        parent::setContentState($contentInfo, $objectStateGroup, $objectState);
87
    }
88
89
    public function getContentState(ContentInfo $contentInfo, ObjectStateGroup $objectStateGroup)
90
    {
91
        parent::getContentState($contentInfo, $objectStateGroup);
92
    }
93
94
    public function getContentCount(ObjectState $objectState)
95
    {
96
        parent::getContentCount($objectState);
97
    }
98
99
    public function newObjectStateGroupCreateStruct($identifier)
100
    {
101
        parent::newObjectStateGroupCreateStruct($identifier);
102
    }
103
104
    public function newObjectStateGroupUpdateStruct()
105
    {
106
        parent::newObjectStateGroupUpdateStruct();
107
    }
108
109
    public function newObjectStateCreateStruct($identifier)
110
    {
111
        parent::newObjectStateCreateStruct($identifier);
112
    }
113
114
    public function newObjectStateUpdateStruct()
115
    {
116
        parent::newObjectStateUpdateStruct();
117
    }
118
}
119