This change updates the namespace across multiple files to reflect the new naming convention.
27 lines
657 B
PHP
27 lines
657 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Uwil\ArcadiaApiPhpClient\Mapper;
|
|
|
|
use Uwil\ArcadiaApiPhpClient\Lib\ApiDto\Dto;
|
|
use Uwil\ArcadiaApiPhpClient\Lib\ApiValueObject\SortColumn;
|
|
|
|
interface Mapper
|
|
{
|
|
public function getTable(): string;
|
|
|
|
public function getTableKey(): string;
|
|
|
|
/** @return array<string,string> */
|
|
public function getPropertiesMap(): array;
|
|
|
|
public function getValueFor(string | SortColumn $column): string;
|
|
|
|
/**
|
|
* @param array<string,null|mixed> $data
|
|
*
|
|
* @throws \Uwil\ArcadiaApiPhpClient\Exception\UnexpectedErrorException If mapping fails.
|
|
*/
|
|
public function toDto(array $data): Dto;
|
|
}
|