| Total Complexity | 12 |
| Total Lines | 114 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Message |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @Serializer\Type("integer") |
||
| 13 | * |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $id; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @Serializer\Type("integer") |
||
| 20 | * |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | private $out; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Serializer\Type("integer") |
||
| 27 | * |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | private $in; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @Serializer\Type("integer") |
||
| 34 | * |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | private $from_id; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @Serializer\Type("integer") |
||
| 41 | * |
||
| 42 | * @var int |
||
| 43 | */ |
||
| 44 | private $to_id; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @Serializer\Type("string") |
||
| 48 | * |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | private $message; |
||
| 52 | |||
| 53 | public function getId(): int |
||
| 54 | { |
||
| 55 | return $this->id; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function setId(int $id): self |
||
| 59 | { |
||
| 60 | $this->id = $id; |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getOut(): int |
||
| 66 | { |
||
| 67 | return $this->out; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function setOut(int $out): self |
||
| 71 | { |
||
| 72 | $this->out = $out; |
||
| 73 | |||
| 74 | return $this; |
||
| 75 | } |
||
| 76 | |||
| 77 | public function getIn(): int |
||
| 80 | } |
||
| 81 | |||
| 82 | public function setIn(int $in): self |
||
| 83 | { |
||
| 84 | $this->in = $in; |
||
| 85 | |||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | public function getFromId(): int |
||
| 90 | { |
||
| 91 | return $this->from_id; |
||
| 92 | } |
||
| 93 | |||
| 94 | public function setFromId(int $from_id): self |
||
| 95 | { |
||
| 96 | $this->from_id = $from_id; |
||
| 97 | |||
| 98 | return $this; |
||
| 99 | } |
||
| 100 | |||
| 101 | public function getToId(): int |
||
| 102 | { |
||
| 103 | return $this->to_id; |
||
| 104 | } |
||
| 105 | |||
| 106 | public function setToId(int $to_id): self |
||
| 107 | { |
||
| 108 | $this->to_id = $to_id; |
||
| 109 | |||
| 110 | return $this; |
||
| 111 | } |
||
| 112 | |||
| 113 | public function getMessage(): string |
||
| 114 | { |
||
| 115 | return $this->message; |
||
| 116 | } |
||
| 117 | |||
| 118 | public function setMessage(string $message): self |
||
| 123 | } |
||
| 124 | } |
||
| 125 |