get($this->getRecord()->agent); } function getName(): string { return $this->getRecord()->name; } function getIcon(): ?string { return $this->getRecord()->icon; } function shouldAppendNumber(): bool { return (bool) $this->getRecord()->numerate; } function setAgent(User $agent): void { $this->stateChanges("agent", $agent->getId()); } function setNumeration(bool $numerate): void { $this->stateChanges("numerate", $numerate); } }