mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +00:00
Make types more specific NO_CI
This commit is contained in:
parent
f973d59d58
commit
98adcaad7c
|
|
@ -28,7 +28,7 @@ interface PointInterface
|
||||||
/**
|
/**
|
||||||
* Get the point coordinates
|
* Get the point coordinates
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array<int, int|float>
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -37,25 +37,25 @@ interface PointInterface
|
||||||
/**
|
/**
|
||||||
* Get the coordinate of the point
|
* 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
|
* @return int|float
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getCoordinate($index);
|
public function getCoordinate(int $index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the coordinate of the point
|
* 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
|
* @param mixed $value Value of the coordinate
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setCoordinate($index, $value) : void;
|
public function setCoordinate(int $index, $value) : void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get group this point belongs to
|
* Get group this point belongs to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user