Make types more specific NO_CI

This commit is contained in:
Dennis Eichhorn 2020-02-05 16:49:07 +01:00 committed by GitHub
parent f973d59d58
commit 98adcaad7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ interface PointInterface
/**
* Get the point coordinates
*
* @return array
* @return array<int, int|float>
*
* @since 1.0.0
*/
@ -37,25 +37,25 @@ interface PointInterface
/**
* Get the coordinate of the point
*
* @param mixed $index Index of the coordinate (e.g. 0 = x);
* @param int $index Index of the coordinate (e.g. 0 = x);
*
* @return int|float
*
* @since 1.0.0
*/
public function getCoordinate($index);
public function getCoordinate(int $index);
/**
* Set the coordinate of the point
*
* @param mixed $index Index of the coordinate (e.g. 0 = x);
* @param int $index Index of the coordinate (e.g. 0 = x);
* @param mixed $value Value of the coordinate
*
* @return void
*
* @since 1.0.0
*/
public function setCoordinate($index, $value) : void;
public function setCoordinate(int $index, $value) : void;
/**
* Get group this point belongs to