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