Changeset 13906 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/attendee/attendee.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/attendee/attendee.php
r13739 r13906 10 10 private bool $is_host; 11 11 private bool $is_new_contributor; 12 private bool $is_remote; 12 13 13 14 /** … … 19 20 * @throws Exception 20 21 */ 21 public function __construct( int $event_id, int $user_id, bool $is_host = false, $is_new_contributor = false, array $contributed_locales = array() ) {22 public function __construct( int $event_id, int $user_id, bool $is_host = false, $is_new_contributor = false, array $contributed_locales = array(), $is_remote = false ) { 22 23 if ( $event_id < 1 ) { 23 24 throw new Exception( 'invalid event id' ); … … 31 32 $this->is_host = $is_host; 32 33 $this->is_new_contributor = $is_new_contributor; 34 $this->is_remote = $is_remote; 33 35 $this->contributed_locales = $contributed_locales; 34 36 } … … 54 56 } 55 57 58 public function is_remote(): bool { 59 return $this->is_remote; 60 } 61 56 62 public function mark_as_host(): void { 57 63 $this->is_host = true; … … 66 72 } 67 73 74 public function mark_as_remote_attendee(): void { 75 $this->is_remote = true; 76 } 77 78 public function mark_as_in_person_attendee(): void { 79 $this->is_remote = false; 80 } 81 68 82 /** 69 83 * @return string[]
Note: See TracChangeset
for help on using the changeset viewer.