Completed
Push — EZP-30969-fetch-reverse-relati... ( d71d24 )
by
unknown
121:16 queued 99:27
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
abstract class UnauthorizedListItem
12
{
13
    /** @var string */
14
    private $module;
15
16
    /** @var string */
17
    private $function;
18
19
    /** @var array */
20
    private $payload;
21
22
    /**
23
     * @param string $module
24
     * @param string $function
25
     * @param array $payload
26
     */
27
    public function __construct(string $module, string $function, array $payload)
28
    {
29
        $this->module = $module;
30
        $this->function = $function;
31
        $this->payload = $payload;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getModule(): string
38
    {
39
        return $this->module;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getFunction(): string
46
    {
47
        return $this->function;
48
    }
49
50
    /**
51
     * @return array
52
     */
53
    public function getPayload(): array
54
    {
55
        return $this->payload;
56
    }
57
}
58