31 lines
551 B
PHP
31 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';
|
|
}
|
|
}
|