start the channel module.
This commit is contained in:
parent
0ded6e24f7
commit
d3a8358816
31
app/src/Domain/Entity/Episode.php
Normal file
31
app/src/Domain/Entity/Episode.php
Normal 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 "";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user