mirror of
https://github.com/appwrite/appwrite
synced 2026-05-01 18:38:05 +00:00
32 lines
551 B
PHP
32 lines
551 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Tests\Unit\Utopia;
|
||
|
|
|
||
|
|
use Appwrite\Utopia\Response\Model;
|
||
|
|
|
||
|
|
class Nested extends Model
|
||
|
|
{
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
$this
|
||
|
|
->addRule('lists', [
|
||
|
|
'type' => 'lists',
|
||
|
|
'default' => '',
|
||
|
|
])
|
||
|
|
->addRule('single', [
|
||
|
|
'type' => 'single',
|
||
|
|
'default' => ''
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getName(): string
|
||
|
|
{
|
||
|
|
return 'Nested';
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getType(): string
|
||
|
|
{
|
||
|
|
return 'nested';
|
||
|
|
}
|
||
|
|
}
|