start the channel module.

This commit is contained in:
Dave Smith-Hayes 2024-11-11 14:04:05 +00:00
parent 0ded6e24f7
commit d3a8358816

View File

@ -0,0 +1,31 @@
<?php
namespace Slovocast\Domain\Entity;
use Slovocast\Domain\Entity as EntityTrait;
class Episode
{
use EntityTrait;
private string $duration;
public function __construct(
private string $title,
private string $link,
private int $length,
private string $description,
private bool $explicit = false,
) {
$this->duration = $this->parseDuration($this->length);
}
/**
* @TODO Figure out how to parse second to HH:MM:SS
*/
protected function parseDuration(int $length): string
{
return "";
}
}