From 04660e191d7f633014e7c55036fe4e1d06e7e675 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 2 Mar 2015 20:39:45 +0300 Subject: [PATCH] Entities generated from the old database. --- .../Bundle/CopyPasteBundle/Entity/Lang.php | 141 ++++++++ .../Bundle/CopyPasteBundle/Entity/Paste.php | 320 ++++++++++++++++++ 2 files changed, 461 insertions(+) create mode 100644 src/Skobkin/Bundle/CopyPasteBundle/Entity/Lang.php create mode 100644 src/Skobkin/Bundle/CopyPasteBundle/Entity/Paste.php diff --git a/src/Skobkin/Bundle/CopyPasteBundle/Entity/Lang.php b/src/Skobkin/Bundle/CopyPasteBundle/Entity/Lang.php new file mode 100644 index 0000000..38af62b --- /dev/null +++ b/src/Skobkin/Bundle/CopyPasteBundle/Entity/Lang.php @@ -0,0 +1,141 @@ +id; + } + + /** + * Set name + * + * @param string $name + * @return Lang + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * Get name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Set code + * + * @param string $file + * @return Lang + */ + public function setCode($code) + { + $this->code = $code; + + return $this; + } + + /** + * Get code + * + * @return string + */ + public function getCode() + { + return $this->code; + } + + /** + * Set enabled + * + * @param boolean $enabled + * @return Lang + */ + public function setEnabled($enabled) + { + $this->enabled = $enabled; + + return $this; + } + + /** + * Get enabled + * + * @return boolean + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Check if language is enabled + * + * @return boolean + */ + public function isEnabled() + { + return $this->enabled; + } +} diff --git a/src/Skobkin/Bundle/CopyPasteBundle/Entity/Paste.php b/src/Skobkin/Bundle/CopyPasteBundle/Entity/Paste.php new file mode 100644 index 0000000..d8d5035 --- /dev/null +++ b/src/Skobkin/Bundle/CopyPasteBundle/Entity/Paste.php @@ -0,0 +1,320 @@ +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 codeComment + * + * @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 dateExp + * + * @param \DateTime $dateExpire + * @return Paste + */ + public function setDateExpire($dateExpire) + { + $this->dateExpire = $dateExpire; + + return $this; + } + + /** + * Get dateExp + * + * @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; + } +}