mirror of
https://gh.wpcy.net/https://github.com/ztersinc/freescout-clickup-module.git
synced 2026-04-17 19:22:21 +08:00
27 lines
No EOL
560 B
PHP
27 lines
No EOL
560 B
PHP
<?php
|
|
|
|
namespace Modules\ClickupIntegration\Entities;
|
|
|
|
class Tag
|
|
{
|
|
public string $name;
|
|
public string $fgColor;
|
|
public string $bgColor;
|
|
|
|
/**
|
|
* Hydrates an entity with the required data for the integration
|
|
*
|
|
* @param array $data
|
|
* @return Group
|
|
*/
|
|
public static function hydrate(array $data)
|
|
{
|
|
$instance = new static;
|
|
|
|
$instance->name = $data['name'] ?? '';
|
|
$instance->fgColor = $data['tag_fg'] ?? '';
|
|
$instance->bgColor = $data['tag_bg'] ?? '';
|
|
|
|
return $instance;
|
|
}
|
|
} |