Compare commits
2 Commits
b9ecb3d3ba
...
6d8a972fef
Author | SHA1 | Date | |
---|---|---|---|
6d8a972fef | |||
4d60c1849c |
@ -7,6 +7,10 @@ use React\Http\HttpServer;
|
||||
use React\Socket\SocketServer;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
|
||||
/**
|
||||
* We should only be using this method of deploying the applications once we
|
||||
* figure out how to pool MySQL connections. While most PHP can be used in an
|
||||
*/
|
||||
try {
|
||||
$app = Bootstrap::init();
|
||||
$http = new HttpServer(fn (Request $request) => $app->handle($request));
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace Slovocast\Domain\Entity\Episode;
|
||||
|
||||
use Slovocast\Domain\Entity as EntityTrait;
|
||||
|
||||
/**
|
||||
* Represents the data about the specific file that is used for the episode.
|
||||
*/
|
||||
@ -11,8 +10,18 @@ class File
|
||||
{
|
||||
use EntityTrait;
|
||||
|
||||
/**
|
||||
* We should also be able to buffer the raw binary data of the buffer to
|
||||
* the class. Fuck it, we ball.
|
||||
*/
|
||||
private string $buffer = "";
|
||||
|
||||
/**
|
||||
* @param string $url The URL can be a full file location on the disk, or
|
||||
* a remote URL. It does not matter
|
||||
* @param int $length The length of the episode in seconds
|
||||
* @param string $type The audio file type
|
||||
*/
|
||||
public function __construct(
|
||||
private string $url,
|
||||
private int $length,
|
||||
@ -29,7 +38,7 @@ class File
|
||||
return $this->length;
|
||||
}
|
||||
|
||||
public function getType(): string
|
||||
public function getType(): string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user