<?php
namespace Mm\Beton\Planungsatlas\AtlasBundle\Entity\Main;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Construction
*
* @package Mm\Beton\Planungsatlas\AtlasBundle\Entity
* @ORM\Entity
* @ORM\Table(name="constructions")
*/
class Construction extends AbstractModel
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", length=128, nullable=false)
*/
private $name;
/**
* @var ArrayCollection
* @ORM\OneToMany(targetEntity="ConstructionType", mappedBy="construction")
*/
private $constructionTypes;
/**
* Constructor
*/
public function __construct()
{
$this->constructionTypes = new ArrayCollection();
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return ConstructionType[]
*/
public function getConstructionTypes()
{
return $this->constructionTypes;
}
/**
* @param ConstructionType[] $constructionTypes
*/
public function setConstructionTypes($constructionTypes)
{
$this->constructionTypes = $constructionTypes;
}
}