mirror of
https://gitlab.com/ArkHost/WHMCS-Discord-Notifications.git
synced 2026-09-19 17:27:28 +02:00
Add files via upload
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace WHMCS\Module\Notification\Discord;
|
||||
|
||||
class Field
|
||||
{
|
||||
public $name = "";
|
||||
public $value = "";
|
||||
public $inline = true;
|
||||
|
||||
public function name($name)
|
||||
{
|
||||
$this->name = trim($name);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function value($value)
|
||||
{
|
||||
$this->value = trim($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function inline($inline)
|
||||
{
|
||||
$this->inline = (bool) $inline;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'name' => $this->name,
|
||||
'value' => $this->value,
|
||||
'inline' => $this->inline
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user