mc-cms-namelessmc/core/classes/DTO/IntegrationUserData.php
tadhgboyle 0c80570609
Enable StyleCI (#3475)
* Create StyleCI config file

* Disable `phpdoc_separation`

* Apply fixes from StyleCI (#3476)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* style: styleci fixes

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-03-09 11:19:55 +00:00

29 lines
789 B
PHP

<?php
class IntegrationUserData
{
public int $id;
public int $integration_id;
public string $user_id;
public ?string $identifier;
public ?string $username;
public bool $verified;
public int $date;
public ?string $code;
public bool $show_publicly;
public int $last_sync;
public function __construct(object $row)
{
$this->id = $row->id;
$this->integration_id = $row->integration_id;
$this->user_id = $row->user_id;
$this->identifier = $row->identifier;
$this->username = $row->username;
$this->verified = $row->verified;
$this->date = $row->date;
$this->code = $row->code;
$this->show_publicly = $row->show_publicly;
$this->last_sync = $row->last_sync;
}
}