for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MartinGeorgiev\ValueObject;
/**
* @since 3.1
*
* @author Martin Georgiev <[email protected]>
*/
final class Point
{
public function __construct(
private float $x,
private float $y,
) {
}
public function getX(): float
return $this->x;
public function getY(): float
return $this->y;
public function __toString(): string
return \sprintf('(%s, %s)', $this->x, $this->y);