1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00
appwrite/src/Appwrite/Utopia/Response/Model/Continent.php
Asmit2952 5a729e0932 Fixed PSR issues in Utopia Library
Signed-off-by: Asmit2952 <asmitbm2952002@gmail.com>
2021-10-06 19:52:38 +05:30

48 lines
958 B
PHP

<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class Continent extends Model
{
public function __construct()
{
$this
->addRule('name', [
'type' => self::TYPE_STRING,
'description' => 'Continent name.',
'default' => '',
'example' => 'Europe',
])
->addRule('code', [
'type' => self::TYPE_STRING,
'description' => 'Continent two letter code.',
'default' => '',
'example' => 'EU',
])
;
}
/**
* Get Name
*
* @return string
*/
public function getName():string
{
return 'Continent';
}
/**
* Get Collection
*
* @return string
*/
public function getType():string
{
return Response::MODEL_CONTINENT;
}
}