ConstructorPromotion
in package
Table of Contents
- $name : string
- Summary
- $email : string
- $birth_date : DateTimeImmutable
- __construct() : mixed
- Constructor with promoted properties
Properties
$name
Summary
public
string
$name
Description
property description
protected
string
$email
= 'test@example.com'
$birth_date
private
DateTimeImmutable
$birth_date
Methods
__construct()
Constructor with promoted properties
public
__construct(string $name[, string $email = 'test@example.com' ], DateTimeImmutable $birth_date) : mixed
Parameters
- $name : string
-
my docblock name
- $email : string = 'test@example.com'
- $birth_date : DateTimeImmutable