| Total Complexity | 7 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class CChatConversation extends AbstractResource implements ResourceInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | * |
||
| 22 | * @ORM\Column(name="id", type="integer") |
||
| 23 | * @ORM\Id |
||
| 24 | * @ORM\GeneratedValue |
||
| 25 | */ |
||
| 26 | protected $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | * |
||
| 31 | * @ORM\Column(name="name", type="string", length=255, nullable=true) |
||
| 32 | */ |
||
| 33 | protected $name; |
||
| 34 | |||
| 35 | public function __toString(): string |
||
| 36 | { |
||
| 37 | return $this->getName(); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getId(): int |
||
| 41 | { |
||
| 42 | return $this->id; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getName(): string |
||
| 46 | { |
||
| 47 | return $this->name; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function setName(string $name): self |
||
| 51 | { |
||
| 52 | $this->name = $name; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Resource identifier. |
||
| 59 | */ |
||
| 60 | public function getResourceIdentifier(): int |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getResourceName(): string |
||
| 68 | } |
||
| 69 | |||
| 70 | public function setResourceName(string $name): self |
||
| 71 | { |
||
| 75 |