| Total Complexity | 7 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | #[Table(name: 'stu_npc_log')] |
||
| 16 | #[Entity(repositoryClass: 'Stu\Orm\Repository\NPCLogRepository')] |
||
| 17 | class NPCLog implements NPCLogInterface |
||
| 18 | { |
||
| 19 | #[Id] |
||
| 20 | #[Column(type: 'integer')] |
||
| 21 | #[GeneratedValue(strategy: 'IDENTITY')] |
||
| 22 | private int $id; |
||
| 23 | |||
| 24 | #[Column(type: 'text')] |
||
| 25 | private string $text = ''; |
||
| 26 | |||
| 27 | #[Column(type: 'integer')] |
||
| 28 | private int $date = 0; |
||
| 29 | |||
| 30 | #[Column(type: 'integer', nullable: true)] |
||
| 31 | private ?int $source_user_id = 0; |
||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | public function getId(): int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getText(): string |
||
| 41 | { |
||
| 42 | return $this->text; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setText(string $text): NPCLogInterface |
||
| 46 | { |
||
| 47 | $this->text = $text; |
||
| 48 | |||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getDate(): int |
||
| 53 | { |
||
| 54 | return $this->date; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function setDate(int $date): NPCLogInterface |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getSourceUserId(): ?int |
||
| 65 | { |
||
| 66 | return $this->source_user_id; |
||
| 67 | } |
||
| 68 | |||
| 69 | public function setSourceUserId(int $sourceuserId): NPCLogInterface |
||
| 74 | } |
||
| 75 | } |
||
| 76 |