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

SectionService::updateSection()   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\SectionService as SectionServiceInterface;
9
use eZ\Publish\API\Repository\Values\Content\ContentInfo;
10
use eZ\Publish\API\Repository\Values\Content\Location;
11
use eZ\Publish\API\Repository\Values\Content\Section;
12
use eZ\Publish\API\Repository\Values\Content\SectionCreateStruct;
13
use eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct;
14
15
class SectionService implements SectionServiceInterface
16
{
17
    /** @var Symfony\Component\EventDispatcher\EventDispatcherInterface */
18
    protected $eventDispatcher;
19
20
    public function __construct(SectionServiceInterface $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...
21
    {
22
        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...
23
24
        $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...
25
    }
26
27
    public function createSection(SectionCreateStruct $sectionCreateStruct)
28
    {
29
        parent::createSection($sectionCreateStruct);
30
    }
31
32
    public function updateSection(Section $section, SectionUpdateStruct $sectionUpdateStruct)
33
    {
34
        parent::updateSection($section, $sectionUpdateStruct);
35
    }
36
37
    public function loadSection($sectionId)
38
    {
39
        parent::loadSection($sectionId);
40
    }
41
42
    public function loadSections()
43
    {
44
        parent::loadSections();
45
    }
46
47
    public function loadSectionByIdentifier($sectionIdentifier)
48
    {
49
        parent::loadSectionByIdentifier($sectionIdentifier);
50
    }
51
52
    public function countAssignedContents(Section $section)
53
    {
54
        parent::countAssignedContents($section);
55
    }
56
57
    public function isSectionUsed(Section $section)
58
    {
59
        parent::isSectionUsed($section);
60
    }
61
62
    public function assignSection(ContentInfo $contentInfo, Section $section)
63
    {
64
        parent::assignSection($contentInfo, $section);
65
    }
66
67
    public function assignSectionToSubtree(Location $location, Section $section): void
68
    {
69
        parent::assignSectionToSubtree($location, $section);
70
    }
71
72
    public function deleteSection(Section $section)
73
    {
74
        parent::deleteSection($section);
75
    }
76
77
    public function newSectionCreateStruct()
78
    {
79
        parent::newSectionCreateStruct();
80
    }
81
82
    public function newSectionUpdateStruct()
83
    {
84
        parent::newSectionUpdateStruct();
85
    }
86
}
87