<?php
namespace CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table("dictate")
* @ORM\Entity(repositoryClass="CoreBundle\Entity\DictateRepository")
*/
class Dictate
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="introduction", type="string", length=255, nullable=true)
*/
private $introduction;
/**
* @var string
*
* @ORM\Column(name="image", type="string", length=128, nullable=true)
*/
private $image;
/**
* @var string
*
* @ORM\Column(name="text", type="string", length=4000, nullable=false)
*/
private $text;
/**
* @var string
*
* @ORM\Column(name="sound_path", type="string", length=128, nullable=true)
*/
private $soundPath;
/**
* @var int
*
* @ORM\Column(name="level", type="integer", nullable=false)
*/
private $level;
/**
* @var ClassroomType
*
* @ORM\ManyToOne(targetEntity="CoreBundle\Entity\ClassroomType")
* @ORM\JoinColumn(name="classroom_type", referencedColumnName="id")
*/
private $classroomType;
/**
* @var array
*
* @ORM\Column(name="color_wrong_count_threshold", type="simple_array", nullable=true)
*/
private $colorWrongCountThreshold;
/**
* @var bool
*
* @ORM\Column(name="is_case_insensitive", type="boolean", options={"default": false})
*/
private $isCaseInsensitive = false;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getIntroduction(): string
{
return $this->introduction;
}
/**
* @param string $introduction
*/
public function setIntroduction(string $introduction): void
{
$this->introduction = $introduction;
}
/**
* @return string
*/
public function getImage(): string
{
return $this->image;
}
/**
* @param string $image
*/
public function setImage(string $image): void
{
$this->image = $image;
}
/**
* @return string
*/
public function getText(): string
{
return $this->text;
}
/**
* @param string $text
*/
public function setText(string $text): void
{
$this->text = $text;
}
/**
* @return string
*/
public function getSoundPath(): string
{
return $this->soundPath;
}
/**
* @param string $soundPath
*/
public function setSoundPath(string $soundPath): void
{
$this->soundPath = $soundPath;
}
/**
* @return int
*/
public function getLevel()
{
return $this->level;
}
/**
* @param int $level
*/
public function setLevel(int $level): void
{
$this->level = $level;
}
/**
* @return ClassroomType
*/
public function getClassroomType()
{
return $this->classroomType;
}
/**
* @param ClassroomType $classroomType
*/
public function setClassroomType(ClassroomType $classroomType): void
{
$this->classroomType = $classroomType;
}
public function getColorWrongCountThreshold(): ?array
{
return $this->colorWrongCountThreshold;
}
public function setColorWrongCountThreshold(?array $colorWrongCountThreshold): self
{
$this->colorWrongCountThreshold = $colorWrongCountThreshold;
return $this;
}
/**
* @return bool
*/
public function isCaseInsensitive(): bool
{
return $this->isCaseInsensitive;
}
/**
* @param bool $isCaseInsensitive
*/
public function setIsCaseInsensitive(bool $isCaseInsensitive): void
{
$this->isCaseInsensitive = $isCaseInsensitive;
}
}