php8 생성자
class Point {
public function __construct(
public float $x = 0.0,
public float $y = 0.0,
public float $z = 0.0,
) {}
}
php 생성자
__construct ([ mixed $args = "" [, $... ]] ) : void
php8 생성자 프로모션
public function __construct(
public string $myProperty,
public string $myOtherProperty,
) {}