mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 09:01:42 -04:00
33 lines
970 B
PHP
33 lines
970 B
PHP
<?php
|
|
|
|
namespace Modules\StudioPlus\Transformers;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class ContentWatermarkRequestResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'content_type_id' => $this->contentType['id'],
|
|
'content_variant_id' => $this->contentVariant ? $this->contentVariant['id'] : null,
|
|
'type' => $this->type['value'],
|
|
'watermark' => $this->watermark,
|
|
'in_time' => $this->inTime,
|
|
'in_duration' => $this->inDuration,
|
|
'out_time' => $this->outTime,
|
|
'out_duration' => $this->outDuration,
|
|
'left' => $this->left,
|
|
'top' => $this->top,
|
|
'right' => $this->right,
|
|
'bottom' => $this->bottom
|
|
];
|
|
}
|
|
}
|