<?php

namespace Mine\SeekerBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * GridCol
 *
 * @ORM\Table(name="grid_col")
 * @ORM\Entity(repositoryClass="Mine\SeekerBundle\Repository\GridColRepository")
 */
class GridCol
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="col", type="string", length=1, nullable=false)
     */
    private $col;

    /**
     * @var GridRow
     *
     * @ORM\ManyToOne(targetEntity="Mine\SeekerBundle\Entity\GridRow", inversedBy="gridCol", cascade={"persist"})
     * @ORM\JoinColumn(name="grid_col", referencedColumnName="id", onDelete="CASCADE")
     */
    private $gridCol;

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

    /**
     * Set col
     *
     * @param integer $col
     *
     * @return GridCol
     */
    public function setCol($col)
    {
        $this->col = $col;

        return $this;
    }

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

    /**
     * Set gridCol
     *
     * @param GridRow $gridCol
     *
     * @return GridCol
     */
    public function setGridCol(GridRow $gridCol = null)
    {
        $this->gridCol = $gridCol;

        return $this;
    }

    /**
     * Get gridCol
     *
     * @return GridRow
     */
    public function getGridCol()
    {
        return $this->gridCol;
    }
}
