/** * @param int $id * @param bool $withWorkedTime * @return ListingResult|null */ public function getListingByID($id, $withWorkedTime = false) { $result = $this->listingsReader->getByID($id, $withWorkedTime); if ($result === null) { return null; } return new ListingResult($result); }