Added PuC for testing

This commit is contained in:
2024-07-04 18:59:19 -04:00
parent c985ab50bd
commit 9e14d32464
34 changed files with 8990 additions and 0 deletions

34
PuC/v4p4/Update.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
if ( !class_exists('Puc_v4p4_Update', false) ):
/**
* A simple container class for holding information about an available update.
*
* @author Janis Elsts
* @access public
*/
abstract class Puc_v4p4_Update extends Puc_v4p4_Metadata {
public $slug;
public $version;
public $download_url;
public $translations = array();
/**
* @return string[]
*/
protected function getFieldNames() {
return array('slug', 'version', 'download_url', 'translations');
}
public function toWpFormat() {
$update = new stdClass();
$update->slug = $this->slug;
$update->new_version = $this->version;
$update->package = $this->download_url;
return $update;
}
}
endif;