actorType = $actorType; return $this; } /** * @return string */ public function getActorType(): string { return $this->actorType; } /** * @param string $actorId * * @return TalkActor */ public function setActorId(string $actorId): self { $this->actorId = $actorId; return $this; } /** * @return string */ public function getActorId(): string { return $this->actorId; } /** * @param array $data * * @return IQueryRow */ public function importFromDatabase(array $data): IQueryRow { $this->setActorType($this->get('actor_type', $data)) ->setActorId($this->get('actor_id', $data)); return $this; } /** * @return array */ public function jsonSerialize(): array { return [ 'actorType' => $this->getActorType(), 'actorId' => $this->getActorId() ]; } }