Private
Public Access
1
0
Files
MineSeeker/src/Entity/GridRow.php

84 lines
1.5 KiB
PHP

<?php
/**
* This file is part of the SplendidBear Websites' projects.
*
* Copyright (c) 2019 @ www.splendidbear.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class GridRow
*
* @package App\Entity
* @author system7 <https://www.splendidbear.org>
*
* @ORM\Entity(repositoryClass="App\Repository\GridRowRepository")
*/
class GridRow
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var Grid|null
*
* @ORM\ManyToOne(targetEntity="App\Entity\Grid", inversedBy="gridRow", cascade={"persist"})
* @ORM\JoinColumn(name="grid", referencedColumnName="id", onDelete="CASCADE")
*/
private $grid;
/**
* @var array|null
*
* @ORM\Column(name="grid_col", type="json_array", nullable=false)
*/
private $gridCol;
public function getId(): ?int
{
return $this->id;
}
/**
* @return Grid|null
*/
public function getGrid()
{
return $this->grid;
}
/**
* @param Grid|null $grid
*/
public function setGrid( $grid): void
{
$this->grid = $grid;
}
/**
* @return array|null
*/
public function getGridCol()
{
return $this->gridCol;
}
/**
* @param array|null $gridCol
*/
public function setGridCol($gridCol): void
{
$this->gridCol = $gridCol;
}
}