Changeset 13906 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/event/event.php
- Timestamp:
- 07/17/2024 11:19:52 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/event/event.php
r13800 r13906 43 43 private string $title; 44 44 private string $description; 45 private string $attendance_mode; 45 46 46 47 /** … … 56 57 string $status, 57 58 string $title, 58 string $description 59 string $description, 60 string $attendance_mode = 'onsite' 59 61 ) { 60 62 $this->author_id = $author_id; … … 66 68 $this->set_title( $title ); 67 69 $this->set_description( $description ); 70 $this->set_attendance_mode( $attendance_mode ); 68 71 } 69 72 … … 103 106 public function is_past(): bool { 104 107 return $this->end->is_in_the_past(); 108 } 109 110 public function is_remote(): bool { 111 return 'remote' === $this->attendance_mode; 112 } 113 114 public function is_hybrid(): bool { 115 return 'hybrid' === $this->attendance_mode; 105 116 } 106 117 … … 145 156 } 146 157 158 public function attendance_mode(): string { 159 return $this->attendance_mode; 160 } 161 147 162 /** 148 163 * @throws InvalidStatus … … 163 178 } 164 179 180 public function set_attendance_mode( string $attendance_mode ): void { 181 $this->attendance_mode = $attendance_mode; 182 } 183 165 184 /** 166 185 * @throws InvalidStart
Note: See TracChangeset
for help on using the changeset viewer.