/** * Returns a value between 0 and 100 representing the percentage complete of the current sync. * * @return int */ public function get_progress(): int { return min( 100, max( 0, (int) get_option( self::SYNC_TASK_PROGRESS, 0 ) ) ); } }