2017-11-30 15:06:13 -05:00
|
|
|
<?php
|
|
|
|
|
2018-02-14 16:42:39 -05:00
|
|
|
namespace App\Entity;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* CameraType
|
|
|
|
*
|
|
|
|
* @ORM\Table(name="camera_type", schema="camera")
|
|
|
|
* @ORM\Entity
|
|
|
|
*/
|
|
|
|
class CameraType
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false)
|
|
|
|
* @ORM\Id
|
2018-01-04 10:42:36 -05:00
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
|
|
* @ORM\SequenceGenerator(sequenceName="camera.camera_type_id_seq", allocationSize=1, initialValue=1)
|
2017-11-30 15:06:13 -05:00
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="type", type="string", length=255, nullable=false)
|
|
|
|
*/
|
|
|
|
private $type;
|
|
|
|
|
2018-01-03 16:41:56 -05:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="description", type="text", nullable=true)
|
|
|
|
*/
|
|
|
|
private $description;
|
|
|
|
|
2017-11-30 15:06:13 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Value for serialization
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-01-03 16:41:56 -05:00
|
|
|
public function __toString(): string
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
return $this->type;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get id
|
|
|
|
*
|
|
|
|
* @return integer
|
|
|
|
*/
|
2018-01-03 16:41:56 -05:00
|
|
|
public function getId(): int
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set type
|
|
|
|
*
|
|
|
|
* @param string $type
|
|
|
|
*
|
|
|
|
* @return CameraType
|
|
|
|
*/
|
2018-01-03 16:41:56 -05:00
|
|
|
public function setType(string $type): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->type = $type;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2018-01-03 16:41:56 -05:00
|
|
|
/**
|
|
|
|
* Set description
|
|
|
|
*
|
|
|
|
* @param string $description
|
|
|
|
*
|
|
|
|
* @return CameraType
|
|
|
|
*/
|
|
|
|
public function setDescription(string $description): self
|
|
|
|
{
|
|
|
|
$this->description = $description;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2017-11-30 15:06:13 -05:00
|
|
|
/**
|
|
|
|
* Get type
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-01-03 16:41:56 -05:00
|
|
|
public function getType(): string
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
return $this->type;
|
|
|
|
}
|
2018-01-03 16:41:56 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get description
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getDescription(): ?string
|
|
|
|
{
|
|
|
|
return $this->description;
|
|
|
|
}
|
2017-11-30 15:06:13 -05:00
|
|
|
}
|