Jake Vanderwerf
3 days ago ba1e1ccf869b818f7a7a897264dfea05563a7796
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
<?php
namespace JVBase\registrar\config;
 
use JVBase\registrar\Registrar;
 
if (!defined('ABSPATH')) {
    exit;
}
 
final class Dashboard extends Config{
    public string $title;
    public string $description = '';
 
    public function __construct(string $title) {
        $this->title = 'Your ' . $title;
    }
 
    public function setTitle(string $title): self {
        $this->title = $title;
        return $this;
    }
    public function getTitle():string
    {
        return $this->title;
    }
 
    public function setDescription(string $description):self
    {
        $this->description = $description;
        return $this;
    }
    public function getDescription():string|array
    {
        return $this->description;
    }
 
    public function getConfig(): array
    {
        return [
            'title'         => $this->title,
            'description'   => $this->description,
        ];
    }
}