19 lines
396 B
PHP
19 lines
396 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Utopia\Request\Filters;
|
|
|
|
use Appwrite\Utopia\Request\Filter;
|
|
|
|
class First extends Filter
|
|
{
|
|
public function parse(array $content, string $model): array
|
|
{
|
|
if ($model === 'namespace.method') {
|
|
$content['first'] = true;
|
|
$content['second'] = false;
|
|
$content['removed'] = true;
|
|
}
|
|
|
|
return $content;
|
|
}
|
|
}
|