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

44 lines
869 B
PHP
Raw Normal View History

2025-08-22 07:17:15 +00:00
<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
class AttributeLine extends Attribute
{
public function __construct()
{
parent::__construct();
$this
->addRule('default', [
2025-09-02 12:03:30 +00:00
'type' => self::TYPE_SPATIAL,
2025-08-22 07:17:15 +00:00
'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.',
'default' => null,
'required' => false,
'example' => '[[0, 0], [1, 1]]'
])
;
}
/**
* Get Name
*
* @return string
*/
public function getName(): string
{
return 'AttributeLine';
}
/**
* Get Type
*
* @return string
*/
public function getType(): string
{
return Response::MODEL_ATTRIBUTE_LINE;
}
}