| Total Complexity | 8 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class CStudentPublicationCorrection extends AbstractResource implements ResourceInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | * |
||
| 23 | * @ORM\Column(name="id", type="integer") |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue |
||
| 26 | */ |
||
| 27 | protected $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | * @Assert\NotBlank() |
||
| 32 | * @ORM\Column(name="title", type="string", length=255, nullable=true) |
||
| 33 | */ |
||
| 34 | protected $title; |
||
| 35 | |||
| 36 | public function __construct() |
||
| 37 | { |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set title. |
||
| 42 | * |
||
| 43 | * @param string $title |
||
| 44 | * |
||
| 45 | * @return CStudentPublication |
||
| 46 | */ |
||
| 47 | public function setTitle($title) |
||
| 48 | { |
||
| 49 | $this->title = $title; |
||
| 50 | |||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get title. |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getTitle() |
||
| 60 | { |
||
| 61 | return $this->title; |
||
| 62 | } |
||
| 63 | |||
| 64 | public function __toString(): string |
||
| 67 | } |
||
| 68 | |||
| 69 | public function getId(): int |
||
| 70 | { |
||
| 71 | return $this->id; |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Resource identifier. |
||
| 76 | */ |
||
| 77 | public function getResourceIdentifier(): int |
||
| 78 | { |
||
| 79 | return $this->getId(); |
||
| 80 | } |
||
| 81 | |||
| 82 | public function getResourceName(): string |
||
| 85 | } |
||
| 86 | |||
| 87 | public function setResourceName(string $name): self |
||
| 90 | } |
||
| 91 | } |
||
| 92 |