| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | #[ORM\Table(name: 'c_student_publication_correction')] |
||
| 17 | #[ORM\Entity(repositoryClass: CStudentPublicationCorrectionRepository::class)] |
||
| 18 | class CStudentPublicationCorrection extends AbstractResource implements ResourceInterface, Stringable |
||
| 19 | { |
||
| 20 | #[ORM\Column(name: 'id', type: 'integer')] |
||
| 21 | #[ORM\Id] |
||
| 22 | #[ORM\GeneratedValue] |
||
| 23 | protected ?int $id = null; |
||
| 24 | |||
| 25 | #[Assert\NotBlank] |
||
| 26 | #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)] |
||
| 27 | protected string $title; |
||
| 28 | |||
| 29 | public function __toString(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getResourceIdentifier(): int |
||
| 35 | { |
||
| 36 | return $this->getId(); |
||
|
|
|||
| 37 | } |
||
| 38 | |||
| 39 | public function getId(): ?int |
||
| 40 | { |
||
| 41 | return $this->id; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getResourceName(): string |
||
| 45 | { |
||
| 46 | return $this->getTitle(); |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getTitle(): string |
||
| 50 | { |
||
| 51 | return $this->title; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function setTitle(string $title): self |
||
| 59 | } |
||
| 60 | |||
| 61 | public function setResourceName(string $name): self |
||
| 64 | } |
||
| 65 | } |
||
| 66 |