<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 *
 * @license see /license.txt
 * @author autogenerated
 */
class ReservationItemRights extends \Entity
{
    /**
     * @return \Entity\Repository\ReservationItemRightsRepository
     */
     public static function repository(){
        return \Entity\Repository\ReservationItemRightsRepository::instance();
    }

    /**
     * @return \Entity\ReservationItemRights
     */
     public static function create(){
        return new self();
    }

    /**
     * @var integer $item_id
     */
    protected $item_id;

    /**
     * @var integer $class_id
     */
    protected $class_id;

    /**
     * @var boolean $edit_right
     */
    protected $edit_right;

    /**
     * @var boolean $delete_right
     */
    protected $delete_right;

    /**
     * @var boolean $m_reservation
     */
    protected $m_reservation;

    /**
     * @var boolean $view_right
     */
    protected $view_right;


    /**
     * Set item_id
     *
     * @param integer $value
     * @return ReservationItemRights
     */
    public function set_item_id($value)
    {
        $this->item_id = $value;
        return $this;
    }

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

    /**
     * Set class_id
     *
     * @param integer $value
     * @return ReservationItemRights
     */
    public function set_class_id($value)
    {
        $this->class_id = $value;
        return $this;
    }

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

    /**
     * Set edit_right
     *
     * @param boolean $value
     * @return ReservationItemRights
     */
    public function set_edit_right($value)
    {
        $this->edit_right = $value;
        return $this;
    }

    /**
     * Get edit_right
     *
     * @return boolean 
     */
    public function get_edit_right()
    {
        return $this->edit_right;
    }

    /**
     * Set delete_right
     *
     * @param boolean $value
     * @return ReservationItemRights
     */
    public function set_delete_right($value)
    {
        $this->delete_right = $value;
        return $this;
    }

    /**
     * Get delete_right
     *
     * @return boolean 
     */
    public function get_delete_right()
    {
        return $this->delete_right;
    }

    /**
     * Set m_reservation
     *
     * @param boolean $value
     * @return ReservationItemRights
     */
    public function set_m_reservation($value)
    {
        $this->m_reservation = $value;
        return $this;
    }

    /**
     * Get m_reservation
     *
     * @return boolean 
     */
    public function get_m_reservation()
    {
        return $this->m_reservation;
    }

    /**
     * Set view_right
     *
     * @param boolean $value
     * @return ReservationItemRights
     */
    public function set_view_right($value)
    {
        $this->view_right = $value;
        return $this;
    }

    /**
     * Get view_right
     *
     * @return boolean 
     */
    public function get_view_right()
    {
        return $this->view_right;
    }
}