<?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,
|
];
|
}
|
}
|