पीएचपी 8 निर्माता
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
पीएचपी 8 निर्माता पदोन्नति
public function __construct(
public string $myProperty,
public string $myOtherProperty,
) {}