constructor php 8 code example
Example: php 8 constructor promotion
public function __construct(
public string $myProperty,
public string $myOtherProperty,
) {}
public function __construct(
public string $myProperty,
public string $myOtherProperty,
) {}