feat: initial commit
This commit is contained in:
15
app/DataObjects/CreateCommentDTO.php
Normal file
15
app/DataObjects/CreateCommentDTO.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\DataObjects;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\LaravelData\Data;
|
||||
|
||||
class CreateCommentDTO extends Data
|
||||
{
|
||||
public function __construct(
|
||||
public int $file_id,
|
||||
public string $comment,
|
||||
public ?Model $commentModel = null
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user