<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity */class IndexUpdate{ /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue * * @var int */ protected $id; /** * @ORM\Column(type="integer") * * @var int */ protected $customerNumber; /** * @ORM\Column(type="string") * * @var string */ protected $stationId; /** * @ORM\Column(type="float") * * @var float */ protected $value; /** * @ORM\Column(type="string", nullable=true) * * @var string */ protected $picture; /** * @ORM\Column(type="datetime", nullable=true) * * @var \DateTime */ protected $date; /** * IndexUpdate constructor. */ public function __construct() { try { $this->date = new \DateTime(); } catch (\Exception $exception) { // do nothing if date can't be set } } public function getId(): int { return $this->id; } /** * @return IndexUpdate */ public function setId(int $id): self { $this->id = $id; return $this; } public function getCustomerNumber(): int { return $this->customerNumber; } /** * @return IndexUpdate */ public function setCustomerNumber(int $customerNumber): self { $this->customerNumber = $customerNumber; return $this; } public function getStationId(): ?string { return $this->stationId; } /** * @return IndexUpdate */ public function setStationId(?string $stationId): self { $this->stationId = $stationId; return $this; } public function getValue(): ?float { return $this->value; } /** * @return IndexUpdate */ public function setValue(?float $value): self { $this->value = $value; return $this; } public function getPicture(): ?string { return $this->picture; } /** * @return IndexUpdate */ public function setPicture(?string $picture): self { $this->picture = $picture; return $this; } public function getDate(): \DateTime { return $this->date; } /** * @return IndexUpdate */ public function setDate(\DateTime $date): self { $this->date = $date; return $this; }}