<?php
namespace App\Entity\Core\Textbook;
use App\Entity\Core\Classroom\ClassroomType;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table('textbook')]
#[ORM\Entity(repositoryClass: TextbookRepository::class)]
class Textbook
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
/**
* @var string
*/
#[ORM\Column(name: 'name', type: 'string', length: 255)]
private string $name;
/**
* @var string
*/
#[ORM\Column(name: 'display_name', type: 'string', length: 255)]
private string $displayName='';
/**
* @var ClassroomType
*/
#[ORM\JoinTable(name: 'relation_textbook_classroom_type')]
#[ORM\ManyToMany(targetEntity: ClassroomType::class)]
private $classroomTypes;
/**
* @var int
*/
#[ORM\Column(name: 'order', type: 'integer', nullable: true)]
private int $order;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_title', type: 'string', options: ['default' => ''])]
private string $frontPageTitle;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_subtitle', type: 'string', options: ['default' => ''])]
private string $frontPageSubtitle;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_authors', type: 'string', options: ['default' => ''])]
private string $frontPageAuthors;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_message_teacher', type: 'string', options: ['default' => ''])]
private string $frontPageMessageTeacher;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_message_student', type: 'string', options: ['default' => ''])]
private string $frontPageMessageStudent;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_image', type: 'string', options: ['default' => ''])]
private string $frontPageImage;
/**
* @var string
*/
#[ORM\Column(name: 'front_page_color', type: 'string', options: ['default' => '#FFFFFF'])]
private string $frontPageColor;
private function __construct()
{
$this->classroomTypes = new ArrayCollection();
}
public function getDisplayName(): string
{
return $this->displayName;
}
public function getClassroomTypes(): Collection
{
return $this->classroomTypes;
}
public function getOrder(): int
{
return $this->order;
}
public function getName(): string
{
return $this->name;
}
public function getFrontPageTitle(): string
{
return $this->frontPageTitle;
}
public function getFrontPageSubtitle(): string
{
return $this->frontPageSubtitle;
}
public function getFrontPageAuthors(): string
{
return $this->frontPageAuthors;
}
public function getFrontPageImage(): string
{
return $this->frontPageImage;
}
public function getFrontPageColor(): string
{
return $this->frontPageColor;
}
public function getFrontPageMessageTeacher(): string
{
return $this->frontPageMessageTeacher;
}
public function getFrontPageMessageStudent(): string
{
return $this->frontPageMessageStudent;
}
}