src/Entity/Activity.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActivityRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassActivityRepository::class)]
  7. class Activity
  8. {
  9.     use Timestamps;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $action null;
  16.     #[ORM\ManyToOne(inversedBy'activities')]
  17.     private ?Company $owner null;
  18.     #[ORM\ManyToOne(inversedBy'activities')]
  19.     private ?User $made_by null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $context null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $ip null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $method null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $path null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $locale null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $query null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $route null;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getAction(): ?string
  39.     {
  40.         return $this->action;
  41.     }
  42.     public function setAction(?string $action): static
  43.     {
  44.         $this->action $action;
  45.         return $this;
  46.     }
  47.     public function getOwner(): ?Company
  48.     {
  49.         return $this->owner;
  50.     }
  51.     public function setOwner(?Company $owner): static
  52.     {
  53.         $this->owner $owner;
  54.         return $this;
  55.     }
  56.     public function getMadeBy(): ?User
  57.     {
  58.         return $this->made_by;
  59.     }
  60.     public function setMadeBy(?User $made_by): static
  61.     {
  62.         $this->made_by $made_by;
  63.         return $this;
  64.     }
  65.     public function getContext(): ?string
  66.     {
  67.         return $this->context;
  68.     }
  69.     public function setContext(?string $context): static
  70.     {
  71.         $this->context $context;
  72.         return $this;
  73.     }
  74.     public function getIp(): ?string
  75.     {
  76.         return $this->ip;
  77.     }
  78.     public function setIp(?string $ip): static
  79.     {
  80.         $this->ip $ip;
  81.         return $this;
  82.     }
  83.     public function getMethod(): ?string
  84.     {
  85.         return $this->method;
  86.     }
  87.     public function setMethod(?string $method): static
  88.     {
  89.         $this->method $method;
  90.         return $this;
  91.     }
  92.     public function getPath(): ?string
  93.     {
  94.         return $this->path;
  95.     }
  96.     public function setPath(?string $path): static
  97.     {
  98.         $this->path $path;
  99.         return $this;
  100.     }
  101.     public function getLocale(): ?string
  102.     {
  103.         return $this->locale;
  104.     }
  105.     public function setLocale(?string $locale): static
  106.     {
  107.         $this->locale $locale;
  108.         return $this;
  109.     }
  110.     public function getQuery(): ?string
  111.     {
  112.         return $this->query;
  113.     }
  114.     public function setQuery(?string $query): static
  115.     {
  116.         $this->query $query;
  117.         return $this;
  118.     }
  119.     public function getRoute(): ?string
  120.     {
  121.         return $this->route;
  122.     }
  123.     public function setRoute(?string $route): static
  124.     {
  125.         $this->route $route;
  126.         return $this;
  127.     }
  128. }