DoDomuDojade Documentation

CreateUserDTO
in package

Read onlyYes
FinalYes

DTO for creating users

Table of Contents

Properties

$password  : string
$username  : string

Methods

__construct()  : mixed
fromArray()  : self
Create DTO from an array

Properties

Methods

__construct()

public __construct(string $username, string $password) : mixed
Parameters
$username : string
$password : string

fromArray()

Create DTO from an array

public static fromArray(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>
Tags
throws
MissingParameterException
Return values
self

        
On this page

Search results