lat = $lat; } /** * @return float */ public function getLat(): ?float { return $this->lat; } /** * @param float $long */ public function setLong(?float $long) { $this->long = $long; } /** * @return float */ public function getLong(): ?float { return $this->long; } } /** * @Schema\Description("An application") * @Schema\Required({"name", "url"}) */ class Web { /** @var string */ protected $name; /** @var string */ protected $url; /** * @param string $name */ public function setName(?string $name) { $this->name = $name; } /** * @return string */ public function getName(): ?string { return $this->name; } /** * @param string $url */ public function setUrl(?string $url) { $this->url = $url; } /** * @return string */ public function getUrl(): ?string { return $this->url; } } /** * @Schema\Description("An simple author element with some description") * @Schema\Required({"title"}) */ class Author { /** * @var string * @Schema\Pattern("[A-z]{3,16}") */ protected $title; /** * @var string * @Schema\Description("We will send no spam to this address") * @Schema\Nullable(true) */ protected $email; /** * @var array * @Schema\MaxItems(8) */ protected $categories; /** * @var array * @Schema\Description("Array of locations") */ protected $locations; /** @var Location */ protected $origin; /** * @param string $title */ public function setTitle(?string $title) { $this->title = $title; } /** * @return string */ public function getTitle(): ?string { return $this->title; } /** * @param string $email */ public function setEmail(?string $email) { $this->email = $email; } /** * @return string */ public function getEmail(): ?string { return $this->email; } /** * @param array $categories */ public function setCategories(?array $categories) { $this->categories = $categories; } /** * @return array */ public function getCategories(): ?array { return $this->categories; } /** * @param array $locations */ public function setLocations(?array $locations) { $this->locations = $locations; } /** * @return array */ public function getLocations(): ?array { return $this->locations; } /** * @param Location $origin */ public function setOrigin(?Location $origin) { $this->origin = $origin; } /** * @return Location */ public function getOrigin(): ?Location { return $this->origin; } } /** * @extends \PSX\Record\Record * @Schema\MinProperties(1) * @Schema\MaxProperties(6) */ class Meta extends \PSX\Record\Record { } /** * @Schema\Description("An general news entry") * @Schema\Required({"receiver", "price", "content"}) */ class News { /** @var Meta */ protected $config; /** * @var array * @Schema\MinItems(1) * @Schema\MaxItems(6) */ protected $tags; /** * @var array * @Schema\MinItems(1) */ protected $receiver; /** @var array */ protected $resources; /** @var resource */ protected $profileImage; /** @var bool */ protected $read; /** @var Author|Web */ protected $source; /** @var Author */ protected $author; /** @var Meta */ protected $meta; /** @var \PSX\DateTime\Date */ protected $sendDate; /** @var \DateTime */ protected $readDate; /** @var \DateInterval */ protected $expires; /** * @var float * @Schema\Minimum(1) * @Schema\Maximum(100) */ protected $price; /** * @var int * @Schema\Minimum(1) * @Schema\Maximum(5) */ protected $rating; /** * @var string * @Schema\Description("Contains the main content of the news entry") * @Schema\MinLength(3) * @Schema\MaxLength(512) */ protected $content; /** * @var string * @Schema\Enum({"foo", "bar"}) */ protected $question; /** @var string */ protected $version = 'http://foo.bar'; /** @var \PSX\DateTime\Time */ protected $coffeeTime; /** @var \PSX\Uri\Uri */ protected $profileUri; /** * @var string * @Schema\Key("g-recaptcha-response") */ protected $captcha; /** * @param Meta $config */ public function setConfig(?Meta $config) { $this->config = $config; } /** * @return Meta */ public function getConfig(): ?Meta { return $this->config; } /** * @param array $tags */ public function setTags(?array $tags) { $this->tags = $tags; } /** * @return array */ public function getTags(): ?array { return $this->tags; } /** * @param array $receiver */ public function setReceiver(?array $receiver) { $this->receiver = $receiver; } /** * @return array */ public function getReceiver(): ?array { return $this->receiver; } /** * @param array $resources */ public function setResources(?array $resources) { $this->resources = $resources; } /** * @return array */ public function getResources(): ?array { return $this->resources; } /** * @param resource $profileImage */ public function setProfileImage($profileImage) { $this->profileImage = $profileImage; } /** * @return resource */ public function getProfileImage() { return $this->profileImage; } /** * @param bool $read */ public function setRead(?bool $read) { $this->read = $read; } /** * @return bool */ public function getRead(): ?bool { return $this->read; } /** * @param Author|Web $source */ public function setSource($source) { $this->source = $source; } /** * @return Author|Web */ public function getSource() { return $this->source; } /** * @param Author $author */ public function setAuthor(?Author $author) { $this->author = $author; } /** * @return Author */ public function getAuthor(): ?Author { return $this->author; } /** * @param Meta $meta */ public function setMeta(?Meta $meta) { $this->meta = $meta; } /** * @return Meta */ public function getMeta(): ?Meta { return $this->meta; } /** * @param \PSX\DateTime\Date $sendDate */ public function setSendDate(?\PSX\DateTime\Date $sendDate) { $this->sendDate = $sendDate; } /** * @return \PSX\DateTime\Date */ public function getSendDate(): ?\PSX\DateTime\Date { return $this->sendDate; } /** * @param \DateTime $readDate */ public function setReadDate(?\DateTime $readDate) { $this->readDate = $readDate; } /** * @return \DateTime */ public function getReadDate(): ?\DateTime { return $this->readDate; } /** * @param \DateInterval $expires */ public function setExpires(?\DateInterval $expires) { $this->expires = $expires; } /** * @return \DateInterval */ public function getExpires(): ?\DateInterval { return $this->expires; } /** * @param float $price */ public function setPrice(?float $price) { $this->price = $price; } /** * @return float */ public function getPrice(): ?float { return $this->price; } /** * @param int $rating */ public function setRating(?int $rating) { $this->rating = $rating; } /** * @return int */ public function getRating(): ?int { return $this->rating; } /** * @param string $content */ public function setContent(?string $content) { $this->content = $content; } /** * @return string */ public function getContent(): ?string { return $this->content; } /** * @param string $question */ public function setQuestion(?string $question) { $this->question = $question; } /** * @return string */ public function getQuestion(): ?string { return $this->question; } /** * @param string $version */ public function setVersion(?string $version) { $this->version = $version; } /** * @return string */ public function getVersion(): ?string { return $this->version; } /** * @param \PSX\DateTime\Time $coffeeTime */ public function setCoffeeTime(?\PSX\DateTime\Time $coffeeTime) { $this->coffeeTime = $coffeeTime; } /** * @return \PSX\DateTime\Time */ public function getCoffeeTime(): ?\PSX\DateTime\Time { return $this->coffeeTime; } /** * @param \PSX\Uri\Uri $profileUri */ public function setProfileUri(?\PSX\Uri\Uri $profileUri) { $this->profileUri = $profileUri; } /** * @return \PSX\Uri\Uri */ public function getProfileUri(): ?\PSX\Uri\Uri { return $this->profileUri; } /** * @param string $captcha */ public function setCaptcha(?string $captcha) { $this->captcha = $captcha; } /** * @return string */ public function getCaptcha(): ?string { return $this->captcha; } } __halt_compiler();----SIGNATURE:----MKPpKCQGyJVcvTazbaV1y82qYGrJ7MMQSl/2TXPVjKTAsCNfmogtjfFx7OwFxA3xtNFawx9CItz2Muv5aurIgzuQF5szLH2AdM1uE0YN11CAvfywnJleL8HaYolYD2Seo8yA5aNpc7I88bdxwaodEnOSyLiMXB3au7kP6/qTuMNHFr+treGtTQ70RVS+FfFJZlFm3OUfbGh1UkZExXcCkrUB/fyE68CNNbKtzdMvUVDKPWm2zcT9ZAz5iwXmjuuMSQRYR970PPagXJfheIZTsxLs/AapDeKqzKjuz4wZUNvg2VOB2mWTgSENtwu3v+yrL3tky7adiNRpgYrkl33lYnm/0FWqBO3Sy/SxloJfreqOSWeedIh/q2wohxAT/2Q/UOajzjKwMOuSk0sx0ZvEADaA9Lq0039qlGIxHwekumIafErEZNDo+F+l4oUyStBOvtT/tzMRwxmNZ8UgzT4kamnAQbFzgFcunLUWuJciFjbqmJ1HzfyMniWe+UUr4h6EmI9JIxke1Ie9xGiS/lAMwMNmb7lsaiWab87FZiaHsd0/t4uU0DFWGtU6vn3gs+PocLp45rhT7DM7MnZX9YI5Gs9HVgFTtUXOGROtrRA3jHuw11wWW3qpX4jg6xyANmKret8Rw5/MZ+7aQSBKrxTiyobxZSM4LsisgDMDydchdUo=----ATTACHMENT:----NDUwODM0MzcyOTE2MTg0IDk5MTY3NzM1NjUxMzg4MiA3NTAwNTcxNTc1NzYxOTUx