mirror of
https://github.com/appwrite/appwrite
synced 2026-05-03 03:17:20 +00:00
29 lines
466 B
PHP
29 lines
466 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Tests\Unit\Utopia;
|
||
|
|
|
||
|
|
use Appwrite\Utopia\Response\Model;
|
||
|
|
|
||
|
|
class Lists extends Model
|
||
|
|
{
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
$this
|
||
|
|
->addRule('singles', [
|
||
|
|
'type' => 'single',
|
||
|
|
'default' => '',
|
||
|
|
'array' => true
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getName(): string
|
||
|
|
{
|
||
|
|
return 'Lists';
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getType(): string
|
||
|
|
{
|
||
|
|
return 'lists';
|
||
|
|
}
|
||
|
|
}
|