| 1 | <?php |
||
| 20 | trait FloatYTrait { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Y. |
||
| 24 | * |
||
| 25 | * @var float|null |
||
| 26 | */ |
||
| 27 | protected $y; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the y. |
||
| 31 | * |
||
| 32 | * @return float|null Returns the y. |
||
| 33 | */ |
||
| 34 | public function getY(): ?float { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the (int) y. |
||
| 40 | * |
||
| 41 | * @return int Returns the y. |
||
| 42 | */ |
||
| 43 | public function getYInt(): int { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Set the y. |
||
| 49 | * |
||
| 50 | * @param float|null $y The y. |
||
| 51 | * @return self Returns this instance. |
||
| 52 | */ |
||
| 53 | public function setY(?float $y): self { |
||
| 57 | } |
||
| 58 |