25 lines
No EOL
536 B
PHP
25 lines
No EOL
536 B
PHP
<?php
|
|
namespace feed;
|
|
|
|
class Episode {
|
|
public string $title;
|
|
public string $pubDate;
|
|
public string $desc;
|
|
public array $audioData;
|
|
|
|
function __construct($epData) {
|
|
$this->title = $epData->title;
|
|
$this->pubDate = "date";
|
|
$this->desc = "description";
|
|
$this->audioData = [
|
|
"url" => "https",
|
|
"length" => "1",
|
|
"type" => "mp3"
|
|
];
|
|
}
|
|
|
|
function getFormatedAudioData() {
|
|
return "src=\"{$this->audioData["url"]}\" type={}";
|
|
}
|
|
}
|
|
?>
|