id; } /** * Set text * * @param string $text * @return Paste */ public function setText($text) { $this->text = $text; return $this; } /** * Get text * * @return string */ public function getText() { return $this->text; } /** * Set description * * @param string $description * @return Paste */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get code description * * @return string */ public function getDescription() { return $this->description; } /** * Set language * * @param integer $language * @return Paste */ public function setLanguage($language) { $this->language = $language; return $this; } /** * Get language * * @return integer */ public function getLanguage() { return $this->language; } /** * Set filename * * @param string $filename * @return Paste */ public function setFilename($filename) { $this->fileName = $filename; return $this; } /** * Get filename * * @return string */ public function getFilename() { return $this->fileName; } /** * Set author * * @param string $author * @return Paste */ public function setAuthor($author) { $this->author = $author; return $this; } /** * Get author * * @return string */ public function getAuthor() { return $this->author; } /** * Set publication date * * @param \DateTime $datePublished * @return Paste */ public function setDatePublished($datePublished) { $this->datePublished = $datePublished; return $this; } /** * Get publication date * * @return \DateTime */ public function getDatePublished() { return $this->datePublished; } /** * Set expiration date * * @param \DateTime $dateExpire * @return Paste */ public function setDateExpire($dateExpire) { $this->dateExpire = $dateExpire; return $this; } /** * Get expiration date * * @return \DateTime */ public function getDateExpire() { return $this->dateExpire; } /** * Set ip * * @param string $ip * @return Paste */ public function setIp($ip) { $this->ip = $ip; return $this; } /** * Get ip * * @return string */ public function getIp() { return $this->ip; } /** * Set secret * * @param string $secret * @return Paste */ public function setSecret($secret) { $this->secret = $secret; return $this; } /** * Get secret * * @return string */ public function getSecret() { return $this->secret; } /** * Check if copypaste is private * * @return boolean */ public function isPrivate() { return ($this->secret === null) ? false : true; } }