podcast = $podcast; $this->episode = $episode; $this->action = $action; $this->timestamp = $timestamp; $this->started = $started; $this->position = $position; $this->total = $total; $this->guid = $guid; $this->id = $id; } /** * @return string */ public function getPodcast(): string { return $this->podcast; } /** * @return string */ public function getEpisode(): string { return $this->episode; } /** * @return string */ public function getAction(): string { return $this->action; } /** * @return string */ public function getTimestamp(): string { return $this->timestamp; } /** * @return int */ public function getStarted(): int { return $this->started; } /** * @return int */ public function getPosition(): int { return $this->position; } /** * @return int */ public function getTotal(): int { return $this->total; } public function getGuid() : ?string { return $this->guid; } /** * @return int */ public function getId(): int { return $this->id; } public function toArray(): array { return [ 'podcast' => $this->getPodcast(), 'episode' => $this->getEpisode(), 'timestamp' => $this->getTimestamp(), 'guid' => $this->getGuid(), 'position' => $this->getPosition(), 'started' => $this->getStarted(), 'total' => $this->getTotal(), 'action' => $this->getAction(), ]; } }