<?php

namespace OfficeBrain\Bundle\CouponBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @author OfficeBrain 4835 <info@officebrain.com>
 * Description: Entity of tbl_coupon_product_category_mapping.
 * CouponCategoryMapping
 *
 * @ORM\Table(name="tbl_coupon_product_category_mapping")
 * @ORM\Entity(repositoryClass="OfficeBrain\Bundle\CouponBundle\Entity\CouponCategoryMappingRepository")
 */
class CouponCategoryMapping
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="OfficeBrain\Bundle\CouponBundle\Entity\Coupon")
     * @ORM\JoinColumn(name="coupon_id", referencedColumnName="id",onDelete="CASCADE")
     */
    private $couponId;

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

    /**
     * @var int
     *
     * @ORM\Column(name="country_id", type="integer")
     */
    private $countryId;

    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set couponId.
     *
     * @param \OfficeBrain\Bundle\CouponBundle\Entity\Coupon $couponId
     *
     * @return CouponLanguage
     */
    public function setCouponId(\OfficeBrain\Bundle\CouponBundle\Entity\Coupon $couponId = null)
    {
        $this->couponId = $couponId;

        return $this;
    }

    /**
     * Get couponId.
     *
     * @return \OfficeBrain\Bundle\CouponBundle\Entity\Coupon
     */
    public function getCouponId()
    {
        return $this->couponId;
    }

    /**
     * Set categoryId.
     *
     * @param int $categoryId
     *
     * @return CouponCategoryMapping
     */
    public function setCategoryId($categoryId)
    {
        $this->categoryId = $categoryId;

        return $this;
    }

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

    /**
     * Set countryId.
     *
     * @param int $countryId
     *
     * @return CouponCategoryMapping
     */
    public function setCountryId($countryId)
    {
        $this->countryId = $countryId;

        return $this;
    }

    /**
     * Get countryId.
     *
     * @return int
     */
    public function getCountryId()
    {
        return $this->countryId;
    }
}
