| 1 | <?php |
||
| 29 | 1 | final class SchemaProvider |
|
| 30 | { |
||
| 31 | /** |
||
| 32 | * Implement nette smart magic |
||
| 33 | */ |
||
| 34 | 1 | use Nette\SmartObject; |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | private $mapping = []; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $entity |
||
| 43 | * @param string|callable $schema |
||
| 44 | * |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | public function addMapping(string $entity, $schema) : void |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getMapping() : array |
||
| 59 | } |
||
| 60 |