Item.php
836 Bytes
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
<?php
namespace AC\Admin\Menu;
class Item
{
private $slug;
private $url;
private $label;
private $class;
private $target;
public function __construct(string $slug, string $url, string $label, string $class = '', string $target = '')
{
$this->slug = $slug;
$this->url = $url;
$this->label = $label;
$this->class = $class;
$this->target = $target;
}
public function get_slug(): string
{
return $this->slug;
}
public function get_url(): string
{
return $this->url;
}
public function get_label(): string
{
return $this->label;
}
public function get_class(): string
{
return $this->class;
}
public function get_target(): string
{
return $this->target;
}
}