<?php
namespace App\Entity\Channel\PositioningTest;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[
ORM\Entity,
ORM\Table(name: 'channel_positioning_test_positioning_test_blocks'),
]
class PositioningTestBlock
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'integer')]
private ?int $rank = null;
#[ORM\ManyToOne(targetEntity: PositioningTest::class, inversedBy: 'positioningTestBlocks')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private ?PositioningTest $positioningTest = null;
#[ORM\ManyToOne(targetEntity: Block::class, inversedBy: 'positioningTestBlocks')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
#[Assert\NotNull]
private ?Block $block = null;
public function getId(): ?int
{
return $this->id;
}
public function getRank(): ?int
{
return $this->rank;
}
public function setRank(?int $rank): static
{
$this->rank = $rank;
return $this;
}
public function getPositioningTest(): ?PositioningTest
{
return $this->positioningTest;
}
public function setPositioningTest(?PositioningTest $positioningTest): static
{
$this->positioningTest = $positioningTest;
return $this;
}
public function getBlock(): ?Block
{
return $this->block;
}
public function setBlock(?Block $block): static
{
$this->block = $block;
return $this;
}
}