Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Book
- <?php
- namespace CoderslabBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Book
- *
- * @ORM\Table(name="book")
- * @ORM\Entity(repositoryClass="CoderslabBundle\Repository\BookRepository")
- */
- class Book
- {
- /**
- * @var int
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="title", type="string", length=50)
- */
- private $title;
- /**
- * @var string
- *
- * @ORM\Column(name="description", type="text")
- */
- private $description;
- /**
- * @var float
- *
- * @ORM\Column(name="rating", type="float")
- */
- private $rating;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set title
- *
- * @param string $title
- * @return Book
- */
- public function setTitle($title)
- {
- $this->title = $title;
- return $this;
- }
- /**
- * Get title
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set description
- *
- * @param string $description
- * @return Book
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set rating
- *
- * @param float $rating
- * @return Book
- */
- public function setRating($rating)
- {
- $this->rating = $rating;
- return $this;
- }
- /**
- * Get rating
- *
- * @return float
- */
- public function getRating()
- {
- return $this->rating;
- }
- }
Add Comment
Please, Sign In to add comment