for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chipmunk;
class Vector extends AbstractFfi
{
public function __construct(float $x = 0.0, float $y = 0.0)
parent::__construct();
$this->setCData($this->getFfi()->new('cpVect'));
$this->getCData()->x = $x;
x
FFI\CData
$this->getCData()->y = $y;
y
}
public function getX(): float
return $this->getCData()->x;
public function setX(float $x): self
return $this;
public function getY(): float
return $this->getCData()->y;
public function setY(float $y): self