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

44 lines
848 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 ColumnLine extends Column
{
public function __construct()
{
parent::__construct();
$this
->addRule('default', [
'type' => self::TYPE_JSON,
2025-08-22 07:17:15 +00:00
'description' => 'Default value for column when not provided. Cannot be set when column is required.',
'default' => null,
'required' => false,
'example' => '[[0, 0], [1, 1]]'
])
;
}
/**
* Get Name
*
* @return string
*/
public function getName(): string
{
return 'ColumnLine';
}
/**
* Get Type
*
* @return string
*/
public function getType(): string
{
return Response::MODEL_COLUMN_LINE;
}
}