1
0
Fork 0
mirror of synced 2024-07-05 22:51:24 +12:00
appwrite/tests/unit/Utopia/Nested.php

32 lines
551 B
PHP
Raw Normal View History

2022-08-01 22:22:04 +12:00
<?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';
}
}