2024-03-14 22:12:26 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Lucent\JsonSchema\Property;
|
|
|
|
|
|
2024-03-23 12:12:13 +02:00
|
|
|
use Lucent\Support\Collection;
|
2024-03-14 22:12:26 +02:00
|
|
|
use PhpOption\Option;
|
|
|
|
|
|
|
|
|
|
class RefProperty implements Property
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @param string $id
|
|
|
|
|
* @param Option<string> $title
|
|
|
|
|
* @param Option<string> $description
|
|
|
|
|
* @param Collection<string> $_ref
|
|
|
|
|
* @param Option<int> $minItems
|
|
|
|
|
* @param Option<int> $maxItems
|
|
|
|
|
* @param Option<string> $comment
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(
|
|
|
|
|
public string $id,
|
|
|
|
|
public Option $title,
|
|
|
|
|
public Option $description,
|
|
|
|
|
public Collection $_ref,
|
|
|
|
|
public Option $minItems,
|
|
|
|
|
public Option $maxItems,
|
|
|
|
|
public Option $comment,
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|