. * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ namespace Espo\Core\Templates\Entities; use Espo\Core\Field\Link; use Espo\Core\Name\Field; use Espo\Core\ORM\Entity; class Event extends Entity { public const TEMPLATE_TYPE = 'Event'; public const STATUS_PLANNED = 'Planned'; public const STATUS_HELD = 'Held'; public const STATUS_NOT_HELD = 'Not Held'; public function getStatus(): string { return $this->get('status'); } public function setStatus(string $status): self { return $this->set('status', $status); } /** * @since 9.2.0 */ public function getAssignedUser(): ?Link { /** @var ?Link */ return $this->getValueObject(Field::ASSIGNED_USER); } }