2021-03-05 19:40:29 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Appwrite\Utopia\Response\Model;
|
|
|
|
|
|
|
|
use Appwrite\Utopia\Response;
|
|
|
|
use Appwrite\Utopia\Response\Model;
|
|
|
|
|
|
|
|
class Mock extends Model
|
|
|
|
{
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this
|
|
|
|
->addRule('result', [
|
|
|
|
'type' => self::TYPE_STRING,
|
|
|
|
'description' => 'Result message.',
|
|
|
|
'default' => '',
|
|
|
|
'example' => 'Success',
|
|
|
|
])
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Name
|
2021-10-07 03:22:38 +13:00
|
|
|
*
|
2021-03-05 19:40:29 +13:00
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName():string
|
|
|
|
{
|
|
|
|
return 'Mock';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-12-15 23:19:29 +13:00
|
|
|
* Get Type
|
2021-10-07 03:22:38 +13:00
|
|
|
*
|
2021-03-05 19:40:29 +13:00
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getType():string
|
|
|
|
{
|
|
|
|
return Response::MODEL_MOCK;
|
|
|
|
}
|
2021-10-07 03:22:38 +13:00
|
|
|
}
|