/
home
/
obinna
/
html
/
restaurants
/
src
/
Entity
/
Upload File
HOME
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\ActivityRepository") */ class Activity { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ private $date; /** * @ORM\Column(type="string", length=255) */ private $action; /** * @ORM\Column(type="string", length=20, nullable=true) */ private $entity; /** * @ORM\Column(type="integer", name="user_id", nullable=true) */ private $userId; /** * @ORM\Column(type="integer", name="entity_id", nullable=true) */ private $entityId; public function getId(): ?int { return $this->id; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getAction(): ?string { return $this->action; } public function setAction(string $action): self { $this->action = $action; return $this; } public function getEntity(): ?string { return $this->entity; } public function setEntity(?string $entity): self { $this->entity = $entity; return $this; } /** * Set userId * * @param int $userId * * @return Groups */ public function setUserId($userId) { $this->userId = $userId; return $this; } /** * Get userId * * @return int */ public function getUserId() { return $this->userId; } /** * Set entityId * * @param int $entityId * * @return Groups */ public function setEntityId($entityId) { $this->entityId = $entityId; return $this; } /** * Get entityId * * @return int */ public function getEntityId() { return $this->entityId; } }