PluginProbe
Packeta / trunk
Packeta vtrunk
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Module / Dashboard / DashboardItem.php

DashboardItem.php in Packeta trunk, at src/Packetery/Module/Dashboard/DashboardItem.php

68 lines 985 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare( strict_types=1 );
4
5 namespace Packetery\Module\Dashboard;
6
7 class DashboardItem {
8
9 /**
10 * @var string
11 */
12 private $caption;
13
14 /**
15 * @var string|null
16 */
17 private $url;
18
19 /**
20 * @var string
21 */
22 private $description;
23
24 /**
25 * @var int
26 */
27 private $sortOrder;
28
29 /**
30 * @var bool
31 */
32 private $isFinished;
33
34 public function __construct(
35 string $caption,
36 ?string $url,
37 string $description,
38 int $sortOrder,
39 bool $isFinished
40 ) {
41 $this->caption = $caption;
42 $this->url = $url;
43 $this->description = $description;
44 $this->sortOrder = $sortOrder;
45 $this->isFinished = $isFinished;
46 }
47
48 public function getCaption(): string {
49 return $this->caption;
50 }
51
52 public function getUrl(): ?string {
53 return $this->url;
54 }
55
56 public function getDescription(): string {
57 return $this->description;
58 }
59
60 public function getSortOrder(): int {
61 return $this->sortOrder;
62 }
63
64 public function isFinished(): bool {
65 return $this->isFinished;
66 }
67 }
68