-
Notifications
You must be signed in to change notification settings - Fork 0
/
KanbanViewColumn.php
83 lines (64 loc) · 1.46 KB
/
KanbanViewColumn.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/*
* This file is part of the Klipper package.
*
* (c) François Pluchino <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Klipper\Component\KanbanView;
/**
* @author François Pluchino <[email protected]>
*/
class KanbanViewColumn implements KanbanViewColumnInterface
{
protected string $value;
protected string $label;
protected ?string $color = null;
protected ?string $icon = null;
/**
* @var null|int|string
*/
protected $id;
public function __construct(string $value, string $label)
{
$this->value = $value;
$this->label = $label;
}
public function getValue(): string
{
return $this->value;
}
public function getLabel(): string
{
return $this->label;
}
public function setColor(?string $color): self
{
$this->color = $color;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setIcon(?string $icon): self
{
$this->icon = $icon;
return $this;
}
public function getIcon(): ?string
{
return $this->icon;
}
public function setId($id): self
{
$this->id = $id;
return $this;
}
public function getId()
{
return $this->id ?? $this->value;
}
}