src/Entity/CRM/BhpJournals.php line 13
<?phpnamespace App\Entity\CRM;use App\Entity\CRM\Order;use App\Repository\BhpJournalsRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BhpJournalsRepository::class)]class BhpJournals{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $courseNumber = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $startDate = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $endDate = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $addedDate = null;#[ORM\ManyToOne(inversedBy: 'bhpJournals')]#[ORM\JoinColumn(nullable: false)]private ?BhpCourse $bhpCourse = null;#[ORM\ManyToOne(inversedBy: 'bhpJournals')]#[ORM\JoinColumn(nullable: false)]private ?Order $OrderInstance = null;#[ORM\ManyToOne(inversedBy: 'bhpJournals')]#[ORM\JoinColumn(nullable: false)]private ?BhpOrderProduct $BhpOrderProduct = null;#[ORM\OneToMany(mappedBy: 'bhpJournal', targetEntity: BhpParticipants::class)]private Collection $bhpParticipants;public function __construct(){$this->bhpParticipants = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getCourseNumber(): ?string{return $this->courseNumber;}public function setCourseNumber(string $courseNumber): static{$this->courseNumber = $courseNumber;return $this;}public function getStartDate(): ?\DateTimeInterface{return $this->startDate;}public function setStartDate(\DateTimeInterface $startDate): static{$this->startDate = $startDate;return $this;}public function getEndDate(): ?\DateTimeInterface{return $this->endDate;}public function setEndDate(\DateTimeInterface $endDate): static{$this->endDate = $endDate;return $this;}public function getAddedDate(): ?\DateTimeInterface{return $this->addedDate;}public function setAddedDate(\DateTimeInterface $addedDate): static{$this->addedDate = $addedDate;return $this;}public function getBhpCourse(): ?BhpCourse{return $this->bhpCourse;}public function setBhpCourse(?BhpCourse $bhpCourse): static{$this->bhpCourse = $bhpCourse;return $this;}public function getOrderInstance(): ?Order{return $this->OrderInstance;}public function setOrderInstance(?Order $OrderInstance): static{$this->OrderInstance = $OrderInstance;return $this;}public function getBhpOrderProduct(): ?BhpOrderProduct{return $this->BhpOrderProduct;}public function setBhpOrderProduct(?BhpOrderProduct $BhpOrderProduct): static{$this->BhpOrderProduct = $BhpOrderProduct;return $this;}/*** @return Collection<int, BhpParticipants>*/public function getBhpParticipants(): Collection{return $this->bhpParticipants;}public function addBhpParticipant(BhpParticipants $bhpParticipant): static{if (!$this->bhpParticipants->contains($bhpParticipant)) {$this->bhpParticipants->add($bhpParticipant);$bhpParticipant->setBhpJournal($this);}return $this;}public function removeBhpParticipant(BhpParticipants $bhpParticipant): static{if ($this->bhpParticipants->removeElement($bhpParticipant)) {// set the owning side to null (unless already changed)if ($bhpParticipant->getBhpJournal() === $this) {$bhpParticipant->setBhpJournal(null);}}return $this;}}