| Total Complexity | 6 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 83 | } |
||
| 84 | |||
| 85 | public function getArgs(): array |
||
| 88 | } |
||
| 89 | } |
||
| 90 |