Completed
Push — master ( 0c77dd...a60431 )
by Craig
05:19
created

PendingContentCollectible::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula Foundation - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\BlocksModule\Collectible;
15
16
/**
17
 * Class PendingContentCollectible
18
 */
19
class PendingContentCollectible
20
{
21
    /**
22
     * Pending item type.
23
     *
24
     * @var string
25
     */
26
    protected $type;
27
28
    /**
29
     * Pending item description.
30
     *
31
     * @var string
32
     */
33
    protected $description;
34
35
    /**
36
     * Number of pending items.
37
     *
38
     * @var int
39
     */
40
    protected $number;
41
42
    /**
43
     * Route id.
44
     *
45
     * @var string
46
     */
47
    protected $route;
48
49
    /**
50
     * Arguments for route.
51
     *
52
     * @var array
53
     */
54
    protected $args;
55
56
    public function __construct(string $type, string $description, int $number, string $route, array $args = [])
57
    {
58
        $this->type = $type;
59
        $this->description = $description;
60
        $this->number = $number;
61
        $this->route = $route;
62
        $this->args = $args;
63
    }
64
65
    public function getType(): string
66
    {
67
        return $this->type;
68
    }
69
70
    public function getDescription(): string
71
    {
72
        return $this->description;
73
    }
74
75
    public function getNumber(): int
76
    {
77
        return $this->number;
78
    }
79
80
    public function getRoute(): string
81
    {
82
        return $this->route;
83
    }
84
85
    public function getArgs(): array
86
    {
87
        return $this->args;
88
    }
89
}
90