# Data
Data passed to actions or around the application must always extend the Support\Data\AbstractData
class.
The AbstractData
class is a just an extending class of romanzipp/dto (opens new window).
use Support\Data\AbstractData;
final class CreateUserData extends AbstractData
{
protected static array $required = [
'name',
'password'
];
public string $email;
public string $password;
public ?string $displayName = null;
}