<?php
namespace App\Entity;
use App\Repository\AnalysisServiceWeightRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
#[ORM\Entity(repositoryClass: AnalysisServiceWeightRepository::class)]
class AnalysisServiceWeight
{
use TimestampableEntity;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer')]
private $weight;
#[ORM\Column(type: 'integer')]
private $analysisServiceId;
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'analysisServiceWeights')]
private $user;
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getWeight(): ?int
{
return $this->weight;
}
public function setWeight(int $weight): self
{
$this->weight = $weight;
return $this;
}
public function getAnalysisServiceId(): ?int
{
return $this->analysisServiceId;
}
public function setAnalysisServiceId(int $analysisServiceId): self
{
$this->analysisServiceId = $analysisServiceId;
return $this;
}
}