mirror of
https://github.com/appwrite/appwrite
synced 2026-05-16 21:48:45 +00:00
32 lines
532 B
PHP
32 lines
532 B
PHP
<?php
|
|
|
|
namespace Appwrite\Transformation;
|
|
|
|
abstract class Adapter
|
|
{
|
|
protected mixed $input;
|
|
protected mixed $output;
|
|
|
|
public function __construct()
|
|
{
|
|
|
|
}
|
|
|
|
public function setInput(mixed $input): self
|
|
{
|
|
$this->input = $input;
|
|
return $this;
|
|
}
|
|
|
|
public function getOutput(): mixed
|
|
{
|
|
return $this->output;
|
|
}
|
|
|
|
/**
|
|
* @param array<mixed> $traits
|
|
*/
|
|
abstract public function isValid(array $traits): bool;
|
|
|
|
abstract public function transform(): void;
|
|
}
|