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