php 8 property type 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,
) {}