Implemented repository mapper, and venta show

This commit is contained in:
Juan Pablo Vial
2023-08-08 23:53:49 -04:00
parent ef30ae67d2
commit 59825259b6
111 changed files with 2766 additions and 612 deletions

View File

@ -0,0 +1,9 @@
<?php
namespace Incoviba\Common\Define\Repository;
interface Factory
{
public function setCallable(callable $callable): Factory;
public function setArgs(array $args): Factory;
public function run(): mixed;
}

View File

@ -0,0 +1,15 @@
<?php
namespace Incoviba\Common\Define\Repository;
interface Mapper
{
public function setProperty(string $property): Mapper;
public function setFunction(callable $function): Mapper;
public function setFactory(Factory $factory): Mapper;
public function setDefault(mixed $value): Mapper;
public function hasProperty(): bool;
public function hasFunction(): bool;
public function hasFactory(): bool;
public function hasDefault(): bool;
}

View File

@ -0,0 +1,10 @@
<?php
namespace Incoviba\Common\Define\Repository;
interface MapperParser
{
public function register(string $column, ?Mapper $mapper = null): MapperParser;
public function getColumns(): array;
public function hasMapper(string $column): bool;
public function getMapper(string $column): Mapper;
}