| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* This file is part of the Nette Framework (https://nette.org) |
| 5 |
* Copyright (c) 2004 David Grudl (https://davidgrudl.com) |
| 6 |
*/ |
| 7 |
declare (strict_types=1); |
| 8 |
namespace Packetery\Nette\Schema; |
| 9 |
|
| 10 |
interface Schema |
| 11 |
{ |
| 12 |
/** |
| 13 |
* Normalization. |
| 14 |
* @return mixed |
| 15 |
*/ |
| 16 |
function normalize($value, Context $context); |
| 17 |
/** |
| 18 |
* Merging. |
| 19 |
* @return mixed |
| 20 |
*/ |
| 21 |
function merge($value, $base); |
| 22 |
/** |
| 23 |
* Validation and finalization. |
| 24 |
* @return mixed |
| 25 |
*/ |
| 26 |
function complete($value, Context $context); |
| 27 |
/** |
| 28 |
* @return mixed |
| 29 |
*/ |
| 30 |
function completeDefault(Context $context); |
| 31 |
} |
| 32 |
|