Completed
Push — 7.5 ( 17c267...9e0292 )
by Łukasz
47:52 queued 28:25
created

UnauthorizedListItem::getModule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
cc 1
nc 1
nop 0
rs 10
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\API\Repository\Lists;
10
11
/**
12
 * This class represents an element of the list to which the user has no access.
13
 */
14
abstract class UnauthorizedListItem
15
{
16
    /** @var string */
17
    private $module;
18
19
    /** @var string */
20
    private $function;
21
22
    /** @var array */
23
    private $payload;
24
25
    /**
26
     * @param string $module
27
     * @param string $function
28
     * @param array $payload
29
     */
30
    public function __construct(string $module, string $function, array $payload)
31
    {
32
        $this->module = $module;
33
        $this->function = $function;
34
        $this->payload = $payload;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getModule(): string
41
    {
42
        return $this->module;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getFunction(): string
49
    {
50
        return $this->function;
51
    }
52
53
    /**
54
     * @return array
55
     */
56
    public function getPayload(): array
57
    {
58
        return $this->payload;
59
    }
60
}
61