setId($id); $this->setOwnerId($ownerId); } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getTitle() { return $this->title; } public function setTitle($title) { $this->title = $title; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getLocation() { return $this->location; } public function setLocation($location) { $this->location = $location; } public function getMediaItemCount() { return $this->mediaItemCount; } public function setMediaItemCount($mediaItemCount) { $this->mediaItemCount = $mediaItemCount > 0 ? $mediaItemCount : 0; } public function getOwnerId() { return $this->ownerId; } public function setOwnerId($ownerId) { $this->ownerId = $ownerId; } public function getThumbnailUrl() { return $this->thumbnailUrl; } public function setThumbnailUrl($thumbnailUrl) { $this->thumbnailUrl = $thumbnailUrl; } public function getMediaMimeType() { return $this->mediaMimeType; } public function setMediaMimeType($mediaMimeType) { $this->mediaMimeType = $mediaMimeType; } public function getMediaType() { return $this->mediaType; } public function setMediaType($mediaType) { if (!in_array($mediaType, MediaItem::$TYPES)) { throw new Exception("Invalid Media type"); } $this->mediaType = $mediaType; } }