Implement creator studio and upload updates
This commit is contained in:
29
app/Data/Moderation/ModerationSuggestionData.php
Normal file
29
app/Data/Moderation/ModerationSuggestionData.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Data\Moderation;
|
||||
|
||||
class ModerationSuggestionData
|
||||
{
|
||||
/**
|
||||
* @param array<string, mixed> $rawResponse
|
||||
* @param array<int, string> $campaignTags
|
||||
*/
|
||||
public function __construct(
|
||||
public readonly string $provider,
|
||||
public readonly ?string $suggestedLabel = null,
|
||||
public readonly ?string $suggestedAction = null,
|
||||
public readonly ?int $confidence = null,
|
||||
public readonly ?string $explanation = null,
|
||||
public readonly array $campaignTags = [],
|
||||
public readonly array $rawResponse = [],
|
||||
) {
|
||||
}
|
||||
|
||||
public function isEmpty(): bool
|
||||
{
|
||||
return $this->suggestedLabel === null
|
||||
&& $this->suggestedAction === null
|
||||
&& $this->confidence === null
|
||||
&& $this->explanation === null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user