| Total Complexity | 7 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | #[ORM\Table(name: 'c_chat_conversation')] |
||
| 19 | #[ORM\Entity(repositoryClass: CChatConversationRepository::class)] |
||
| 20 | class CChatConversation extends AbstractResource implements ResourceInterface, Stringable |
||
| 21 | { |
||
| 22 | #[ORM\Column(name: 'id', type: 'integer')] |
||
| 23 | #[ORM\Id] |
||
| 24 | #[ORM\GeneratedValue] |
||
| 25 | protected ?int $id = null; |
||
| 26 | |||
| 27 | #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: true)] |
||
| 28 | protected ?string $title = null; |
||
| 29 | |||
| 30 | public function __toString(): string |
||
| 31 | { |
||
| 32 | return $this->getTitle(); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getId(): int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
|
|
|||
| 38 | } |
||
| 39 | |||
| 40 | public function getTitle(): string |
||
| 41 | { |
||
| 42 | return $this->title; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setTitle(string $title): self |
||
| 46 | { |
||
| 47 | $this->title = $title; |
||
| 48 | |||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Resource identifier. |
||
| 54 | */ |
||
| 55 | public function getResourceIdentifier(): int |
||
| 58 | } |
||
| 59 | |||
| 60 | public function getResourceName(): string |
||
| 61 | { |
||
| 62 | return $this->getTitle(); |
||
| 63 | } |
||
| 64 | |||
| 65 | public function setResourceName(string $name): self |
||
| 68 | } |
||
| 69 | } |
||
| 70 |