PersonalInformation
in package
Class PersonalInformation
Table of Contents
- $customerNumber : string
- $dateOfBirth : DateTimeImmutable|null
- $firstName : string
- $gender : CustomerGender
- $lastName : string
- create() : PersonalInformation
- customerNumber() : string
- dateOfBirth() : string|null
- firstName() : string
- gender() : string
- lastName() : string
- toArray() : array<string|int, string>
- __construct() : mixed
Properties
$customerNumber
private
string
$customerNumber
$dateOfBirth
private
DateTimeImmutable|null
$dateOfBirth
$firstName
private
string
$firstName
$gender
private
CustomerGender
$gender
$lastName
private
string
$lastName
Methods
create()
public
static create(CustomerGender $gender[, string $firstName = '' ][, string $lastName = '' ][, string $customerNumber = '' ][, DateTimeImmutable|null $dateOfBirth = null ]) : PersonalInformation
Parameters
- $gender : CustomerGender
- $firstName : string = ''
- $lastName : string = ''
- $customerNumber : string = ''
- $dateOfBirth : DateTimeImmutable|null = null
Return values
PersonalInformation —customerNumber()
public
customerNumber() : string
Return values
string —dateOfBirth()
public
dateOfBirth([string $datetimeFormat = 'Y-m-d H:i:s' ]) : string|null
Parameters
- $datetimeFormat : string = 'Y-m-d H:i:s'
Return values
string|null —firstName()
public
firstName() : string
Return values
string —gender()
public
gender() : string
Return values
string —lastName()
public
lastName() : string
Return values
string —toArray()
public
toArray([string $datetimeFormat = 'Y-m-d H:i:s' ]) : array<string|int, string>
Parameters
- $datetimeFormat : string = 'Y-m-d H:i:s'
Return values
array<string|int, string> —__construct()
private
__construct(CustomerGender $gender, string $firstName, string $lastName, string $customerNumber, DateTimeImmutable|null $dateOfBirth) : mixed
Parameters
- $gender : CustomerGender
- $firstName : string
- $lastName : string
- $customerNumber : string
- $dateOfBirth : DateTimeImmutable|null