30 lines
710 B
PHP
30 lines
710 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Lucent\JsonSchema\Property;
|
||
|
|
|
||
|
|
use Lucent\Primitive\Collection;
|
||
|
|
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,
|
||
|
|
)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
}
|