<?php

namespace Acme\OfferBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Book
 *
 * @ORM\Table(name="book")
 * @ORM\Entity
 */
class Book
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=45)
     */
    private $title;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="relase_date", type="string")
     */
    private $relaseDate;

    /**
     * @var integer
     *
     * @ORM\Column(name="Category_id", type="integer")
     */
    private $categoryId;

    /**
     * @var integer
     *
     * @ORM\Column(name="author_id", type="integer")
     */
    private $authorId;

    /**
     * @var integer
     *
     * @ORM\Column(name="publishing_house_id", type="integer")
     */
    private $publishingHouseId;


    /**
     * 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 relaseDate
     *
     * @param \DateTime $relaseDate
     * @return Book
     */
    public function setRelaseDate($relaseDate)
    {
        $this->relaseDate = $relaseDate;

        return $this;
    }

    /**
     * Get relaseDate
     *
     * @return \DateTime 
     */
    public function getRelaseDate()
    {
        return $this->relaseDate;
    }

    /**
     * Set categoryId
     *
     * @param integer $categoryId
     * @return Book
     */
    public function setCategoryId($categoryId)
    {
        $this->categoryId = $categoryId;

        return $this;
    }

    /**
     * Get categoryId
     *
     * @return integer 
     */
    public function getCategoryId()
    {
        return $this->categoryId;
    }

    /**
     * Set authorId
     *
     * @param integer $authorId
     * @return Book
     */
    public function setAuthorId($authorId)
    {
        $this->authorId = $authorId;

        return $this;
    }

    /**
     * Get authorId
     *
     * @return integer 
     */
    public function getAuthorId()
    {
        return $this->authorId;
    }

    /**
     * Set publishingHouseId
     *
     * @param integer $publishingHouseId
     * @return Book
     */
    public function setPublishingHouseId($publishingHouseId)
    {
        $this->publishingHouseId = $publishingHouseId;

        return $this;
    }

    /**
     * Get publishingHouseId
     *
     * @return integer 
     */
    public function getPublishingHouseId()
    {
        return $this->publishingHouseId;
    }
}
