feat: Add module class for update profile feature.

This commit is contained in:
weichien
2021-05-17 13:47:45 +08:00
parent 2809a2a661
commit 5172e146e1
5 changed files with 229 additions and 0 deletions
@@ -0,0 +1,30 @@
<?php
namespace App\Classes\Modules\Accounts\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class UserObject implements DataTransferObject
{
/** @var string */
private $name;
/**
* NameObject constructor.
* @param string $name
*/
public function __construct(string $name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
}