|
22 | 22 |
|
23 | 23 | class UserPrivateNote extends DataObject
|
24 | 24 | {
|
25 |
| - /** |
26 |
| - * Get private note context ID. |
| 25 | + /** |
| 26 | + * Get private note context ID. |
27 | 27 | *
|
28 |
| - * @return int |
29 |
| - */ |
| 28 | + * @return int |
| 29 | + */ |
30 | 30 | public function getContextId(): int
|
31 | 31 | {
|
32 |
| - return $this->getData('contextId'); |
33 |
| - } |
| 32 | + return $this->getData('contextId'); |
| 33 | + } |
34 | 34 |
|
35 |
| - /** |
36 |
| - * Set private note context ID. |
| 35 | + /** |
| 36 | + * Set private note context ID. |
37 | 37 | *
|
38 |
| - * @param $contextId int |
39 |
| - */ |
| 38 | + * @param $contextId int |
| 39 | + */ |
40 | 40 | public function setContextId(int $contextId): void
|
41 | 41 | {
|
42 |
| - $this->setData('contextId', $contextId); |
43 |
| - } |
| 42 | + $this->setData('contextId', $contextId); |
| 43 | + } |
44 | 44 |
|
45 |
| - /** |
46 |
| - * Get private note user ID. |
| 45 | + /** |
| 46 | + * Get private note user ID. |
47 | 47 | *
|
48 |
| - * @return int |
49 |
| - */ |
| 48 | + * @return int |
| 49 | + */ |
50 | 50 | public function getUserId(): int
|
51 | 51 | {
|
52 |
| - return $this->getData('userId'); |
53 |
| - } |
| 52 | + return $this->getData('userId'); |
| 53 | + } |
54 | 54 |
|
55 |
| - /** |
56 |
| - * Set private note user ID. |
| 55 | + /** |
| 56 | + * Set private note user ID. |
57 | 57 | *
|
58 |
| - * @param $userId int |
59 |
| - */ |
| 58 | + * @param $userId int |
| 59 | + */ |
60 | 60 | public function setUserId(int $userId): void
|
61 | 61 | {
|
62 |
| - $this->setData('userId', $userId); |
63 |
| - } |
| 62 | + $this->setData('userId', $userId); |
| 63 | + } |
64 | 64 |
|
65 | 65 |
|
66 |
| - /** |
67 |
| - * Get private note value. |
| 66 | + /** |
| 67 | + * Get private note value. |
68 | 68 | *
|
69 |
| - * @return string |
70 |
| - */ |
| 69 | + * @return string |
| 70 | + */ |
71 | 71 | public function getNote(): string
|
72 | 72 | {
|
73 |
| - return $this->getData('note'); |
74 |
| - } |
| 73 | + return $this->getData('note'); |
| 74 | + } |
75 | 75 |
|
76 |
| - /** |
77 |
| - * Set private note value. |
| 76 | + /** |
| 77 | + * Set private note value. |
78 | 78 | *
|
79 |
| - * @param $note string |
80 |
| - */ |
| 79 | + * @param $note string |
| 80 | + */ |
81 | 81 | public function setNote(string $note): void
|
82 | 82 | {
|
83 |
| - $this->setData('note', $note); |
84 |
| - } |
85 |
| -} |
86 |
| - |
87 |
| -if (!PKP_STRICT_MODE) { |
88 |
| - class_alias('\PKP\userPrivateNote\UserPrivateNote', '\UserPrivateNote'); |
| 83 | + $this->setData('note', $note); |
| 84 | + } |
89 | 85 | }
|
0 commit comments