startTime; } public function getRemainingDuration(): int { return $this->expectedDuration - $this->getCurrentDuration(); } public function getPublicData(): array { return array( "startTime" => $this->startTime, "expectedDuration" => $this->expectedDuration, "title" => $this->title, "description" => $this->description, "available" => $this->available, "working" => $this->working, "currentDuration" => $this->getCurrentDuration(), "remainingDuration" => $this->getRemainingDuration(), ); } }