You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
498 B
25 lines
498 B
<?php
|
|
|
|
namespace App\UI\Support\Schemas;
|
|
|
|
abstract class AbstractSchema implements BaseSchema
|
|
{
|
|
protected array $context = [];
|
|
|
|
/**
|
|
* Parameterless default instantiation.
|
|
*/
|
|
public static function make(): static
|
|
{
|
|
return new static;
|
|
}
|
|
|
|
public function withContext(array $context): static
|
|
{
|
|
$this->context = array_merge($this->context, $context);
|
|
|
|
return $this;
|
|
}
|
|
|
|
abstract public function getSchema(): array|InputSchemaField;
|
|
}
|
|
|