Files
lucent-laravel/src/Schema/FilesSchema.php
T

37 lines
843 B
PHP
Raw Normal View History

2023-10-02 23:10:49 +03:00
<?php
namespace Lucent\Schema;
use Lucent\Primitive\Collection;
class FilesSchema implements Schema
{
public Type $type = Type::FILES;
/**
* @param Collection<FieldInterface> $fields
2023-10-04 13:32:30 +03:00
* @param array<string> $groups
2023-10-02 23:10:49 +03:00
*/
function __construct(
public string $name,
public string $label,
public Collection $fields,
2024-09-19 23:36:43 +03:00
public string $disk,
2023-10-02 23:10:49 +03:00
public string $path,
2023-10-04 13:32:30 +03:00
public array $groups,
2023-10-02 23:10:49 +03:00
public bool $isEntry = false,
2023-10-23 19:43:59 +03:00
public string $sortBy = "-_sys.updatedAt",
2023-10-02 23:10:49 +03:00
public string $color = "",
2024-08-19 17:48:10 +03:00
public ?string $cardTitle = null,
public ?string $cardImage = null,
2023-10-15 19:14:07 +03:00
public int $revisions = 0,
2023-10-17 22:57:25 +03:00
public array $read = [],
public array $write = [],
2023-10-02 23:10:49 +03:00
)
{
}
}