for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hotrush\Polarcy;
class Point
{
/**
* @var float
*/
private $x;
private $y;
* Point constructor.
*
* @param mixed $x
* @param mixed $y
public function __construct($x, $y)
$this->x = floatval($x);
$this->y = floatval($y);
}
* @return float
public function x()
return $this->x;
public function y()
return $this->y;