<?phpnamespace App\Entity\Gauge;use App\Entity\Extension\HistoricalInterface;use App\Entity\Extension\HistoricalTrait;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;use App\Repository\Gauge\PhaseAndBreakerRepository;/** * @ORM\Entity(repositoryClass=PhaseAndBreakerRepository::class) * @ORM\Table(name="gauge_phaze_and_breaker") */class GaugePhaseAndBreaker implements HistoricalInterface{ use HistoricalTrait; /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private int $id; /** * @var Gauge $gauge * @ORM\ManyToOne(targetEntity="App\Entity\Gauge\Gauge", inversedBy="phaseAndBreaker") * @ORM\JoinColumn(name="gauge_id", referencedColumnName="id", nullable=false) */ private Gauge $gauge; /** * @ORM\Column(type="smallint") */ private int $phase; /** * @ORM\Column(type="smallint") */ private int $breaker; /** * @return int */ public function getId(): int { return $this->id; } /** * @param int $id * @return GaugePhaseAndBreaker */ public function setId(int $id): GaugePhaseAndBreaker { $this->id = $id; return $this; } /** * @return Gauge */ public function getGauge(): Gauge { return $this->gauge; } /** * @param Gauge $gauge * @return GaugePhaseAndBreaker */ public function setGauge(Gauge $gauge): GaugePhaseAndBreaker { $this->gauge = $gauge; return $this; } /** * @return int */ public function getPhase(): int { return $this->phase; } /** * @param int $phase * @return GaugePhaseAndBreaker */ public function setPhase(int $phase): GaugePhaseAndBreaker { $this->phase = $phase; return $this; } /** * @return int */ public function getBreaker(): int { return $this->breaker; } /** * @param int $breaker * @return GaugePhaseAndBreaker */ public function setBreaker(int $breaker): GaugePhaseAndBreaker { $this->breaker = $breaker; return $this; }}