<?phpnamespace App\Entity;use App\Repository\ServiceStateRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ServiceStateRepository::class) */class ServiceState{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") */ private $state_value; /** * @ORM\Column(type="integer", nullable=true) */ private $reg_by; /** * @ORM\Column(type="datetime", nullable=true) */ private $reg_datetime; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="serviceStates") */ private $product; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="serviceStates") */ private $client; /** * @ORM\Column(type="integer") */ private $amount_user; /** * @ORM\Column(type="boolean") */ private $is_active; public function getId(): ?int { return $this->id; } public function getStateValue(): ?int { return $this->state_value; } public function setStateValue(int $state_value): self { $this->state_value = $state_value; return $this; } public function getRegBy(): ?int { return $this->reg_by; } public function setRegBy(?int $reg_by): self { $this->reg_by = $reg_by; return $this; } public function getRegDatetime(): ?\DateTimeInterface { return $this->reg_datetime; } public function setRegDatetime(?\DateTimeInterface $reg_datetime): self { $this->reg_datetime = $reg_datetime; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getClient(): ?User { return $this->client; } public function setClient(?User $client): self { $this->client = $client; return $this; } public function getAmountUser(): ?int { return $this->amount_user; } public function setAmountUser(int $amount_user): self { $this->amount_user = $amount_user; return $this; } public function isIsActive(): ?bool { return $this->is_active; } public function setIsActive(bool $is_active): self { $this->is_active = $is_active; return $this; }}