Skip to content

Commit

Permalink
Merge pull request #48 from nox7/2.1.3
Browse files Browse the repository at this point in the history
2.1.3
  • Loading branch information
nox7 authored Feb 14, 2023
2 parents 6880e2d + f7dd847 commit b076abd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/Http/ArrayPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
namespace Nox\Http;

class ArrayPayload extends Payload {
public string $name;
public array|null $contents;
public function __construct(
public string $name = "",
public ?array $contents = null,
){}
}
12 changes: 7 additions & 5 deletions src/Http/FileUploadPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
namespace Nox\Http;

class FileUploadPayload extends Payload {
public string $name;
public string $fileName;
public int $fileSize;
public string $contentType;
public string $contents;
public function __construct(
public string $name = "",
public string $fileName = "",
public int $fileSize = 0,
public string $contentType = "",
public string $contents = "",
){}
}
6 changes: 4 additions & 2 deletions src/Http/TextPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
namespace Nox\Http;

class TextPayload extends Payload {
public string $name;
public string|null $contents;
public function __construct(
public string $name = "",
public ?string $contents = null,
){}
}

0 comments on commit b076abd

Please sign in to comment.