src/Entity/Activity.php line 10
<?php
namespace App\Entity;
use App\Repository\ActivityRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ActivityRepository::class)]
class Activity
{
use Timestamps;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $action = null;
#[ORM\ManyToOne(inversedBy: 'activities')]
private ?Company $owner = null;
#[ORM\ManyToOne(inversedBy: 'activities')]
private ?User $made_by = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $context = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $ip = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $method = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $path = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $locale = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $query = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $route = null;
public function getId(): ?int
{
return $this->id;
}
public function getAction(): ?string
{
return $this->action;
}
public function setAction(?string $action): static
{
$this->action = $action;
return $this;
}
public function getOwner(): ?Company
{
return $this->owner;
}
public function setOwner(?Company $owner): static
{
$this->owner = $owner;
return $this;
}
public function getMadeBy(): ?User
{
return $this->made_by;
}
public function setMadeBy(?User $made_by): static
{
$this->made_by = $made_by;
return $this;
}
public function getContext(): ?string
{
return $this->context;
}
public function setContext(?string $context): static
{
$this->context = $context;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(?string $ip): static
{
$this->ip = $ip;
return $this;
}
public function getMethod(): ?string
{
return $this->method;
}
public function setMethod(?string $method): static
{
$this->method = $method;
return $this;
}
public function getPath(): ?string
{
return $this->path;
}
public function setPath(?string $path): static
{
$this->path = $path;
return $this;
}
public function getLocale(): ?string
{
return $this->locale;
}
public function setLocale(?string $locale): static
{
$this->locale = $locale;
return $this;
}
public function getQuery(): ?string
{
return $this->query;
}
public function setQuery(?string $query): static
{
$this->query = $query;
return $this;
}
public function getRoute(): ?string
{
return $this->route;
}
public function setRoute(?string $route): static
{
$this->route = $route;
return $this;
}
}