<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\DataType\Date;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait dissolutionDateTrait {
|
/**
|
* @var Date The date that this organization was dissolved.
|
*/
|
protected Date $dissolutionDate;
|
|
public function getDissolutionDate():?Date
|
{
|
return $this->dissolutionDate??null;
|
}
|
public function setDissolutionDate(Date|string $dissolutionDate):void
|
{
|
if (is_string($dissolutionDate)){
|
$dissolutionDate = new Date($dissolutionDate);
|
}
|
$this->dissolutionDate = $dissolutionDate;
|
}
|
public function getDissolutionDateFieldConfig():array
|
{
|
return [
|
'type' => 'date',
|
'label' => 'Dissolution Date',
|
'hint' => 'IMPORTANT: Do not fill this out, unless your business has actually closed.'
|
];
|
}
|
}
|