<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

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

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

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

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

    /**
     * @var string $name
     */
    protected $name;


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

    /**
     * Set parent_id
     *
     * @param integer $value
     * @return ReservationCategory
     */
    public function set_parent_id($value)
    {
        $this->parent_id = $value;
        return $this;
    }

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

    /**
     * Set name
     *
     * @param string $value
     * @return ReservationCategory
     */
    public function set_name($value)
    {
        $this->name = $value;
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function get_name()
    {
        return $this->name;
    }
}