appwrite/src/Appwrite/Utopia/Response/Model/ErrorDev.php

43 lines
968 B
PHP
Raw Normal View History

2020-06-23 15:01:20 +00:00
<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
class ErrorDev extends Error
{
public function __construct()
{
parent::__construct();
$this
->addRule('file', [
'type' => 'string',
'description' => 'File path.',
2020-07-02 13:59:51 +00:00
'example' => '/usr/code/vendor/utopia-php/framework/src/App.php',
2020-06-23 15:01:20 +00:00
])
->addRule('line', [
'type' => 'integer',
'description' => 'Line number.',
'example' => 209,
])
2020-07-03 03:11:16 +00:00
->addRule('trace', [
'type' => 'string',
'description' => 'Error trace.',
'example' => [
''
],
])
2020-06-23 15:01:20 +00:00
;
}
/**
* Get Collection
*
* @return string
*/
public function getType():string
{
return Response::MODEL_ERROR_DEV;
}
}