Skip to content

Commit

Permalink
Rearrange Color members
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Nov 29, 2024
1 parent 9281965 commit 29ed816
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/fields/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ public static function phpType(): string
return sprintf('\\%s|null', ColorData::class);
}

/**
* @inheritdoc
*/
public static function dbType(): string
{
return sprintf('%s(7)', Schema::TYPE_CHAR);
}

/**
* @var string|null The default color hex
*/
public ?string $defaultColor = null;

/**
* @var string[] Preset colors
* @since 4.8.0
Expand All @@ -77,19 +90,6 @@ public function __construct($config = [])
parent::__construct($config);
}

/**
* @inheritdoc
*/
public static function dbType(): string
{
return sprintf('%s(7)', Schema::TYPE_CHAR);
}

/**
* @var string|null The default color hex
*/
public ?string $defaultColor = null;

/** @inheritdoc */
public function getSettingsHtml(): ?string
{
Expand Down

0 comments on commit 29ed816

Please sign in to comment.