docs(Converter): fix @param allowing float
This commit is contained in:
parent
733f845f8f
commit
1dee5f33cf
|
|
@ -133,7 +133,7 @@ class Converter
|
||||||
* Convert inch to EMU
|
* Convert inch to EMU
|
||||||
*
|
*
|
||||||
* @param float $inch
|
* @param float $inch
|
||||||
* @return float
|
* @return int
|
||||||
*/
|
*/
|
||||||
public static function inchToEmu($inch = 1)
|
public static function inchToEmu($inch = 1)
|
||||||
{
|
{
|
||||||
|
|
@ -143,7 +143,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert pixel to twip
|
* Convert pixel to twip
|
||||||
*
|
*
|
||||||
* @param int $pixel
|
* @param float $pixel
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function pixelToTwip($pixel = 1)
|
public static function pixelToTwip($pixel = 1)
|
||||||
|
|
@ -154,7 +154,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert pixel to centimeter
|
* Convert pixel to centimeter
|
||||||
*
|
*
|
||||||
* @param int $pixel
|
* @param float $pixel
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function pixelToCm($pixel = 1)
|
public static function pixelToCm($pixel = 1)
|
||||||
|
|
@ -165,7 +165,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert pixel to point
|
* Convert pixel to point
|
||||||
*
|
*
|
||||||
* @param int $pixel
|
* @param float $pixel
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function pixelToPoint($pixel = 1)
|
public static function pixelToPoint($pixel = 1)
|
||||||
|
|
@ -176,7 +176,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert pixel to EMU
|
* Convert pixel to EMU
|
||||||
*
|
*
|
||||||
* @param int $pixel
|
* @param float $pixel
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public static function pixelToEmu($pixel = 1)
|
public static function pixelToEmu($pixel = 1)
|
||||||
|
|
@ -187,7 +187,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert point to twip unit
|
* Convert point to twip unit
|
||||||
*
|
*
|
||||||
* @param int $point
|
* @param float $point
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function pointToTwip($point = 1)
|
public static function pointToTwip($point = 1)
|
||||||
|
|
@ -209,7 +209,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert point to EMU
|
* Convert point to EMU
|
||||||
*
|
*
|
||||||
* @param int $point
|
* @param float $point
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function pointToEmu($point = 1)
|
public static function pointToEmu($point = 1)
|
||||||
|
|
@ -231,7 +231,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert EMU to pixel
|
* Convert EMU to pixel
|
||||||
*
|
*
|
||||||
* @param int $emu
|
* @param float $emu
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function emuToPixel($emu = 1)
|
public static function emuToPixel($emu = 1)
|
||||||
|
|
@ -242,7 +242,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert pica to point
|
* Convert pica to point
|
||||||
*
|
*
|
||||||
* @param int $pica
|
* @param float $pica
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public static function picaToPoint($pica = 1)
|
public static function picaToPoint($pica = 1)
|
||||||
|
|
@ -253,7 +253,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert degree to angle
|
* Convert degree to angle
|
||||||
*
|
*
|
||||||
* @param int $degree
|
* @param float $degree
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public static function degreeToAngle($degree = 1)
|
public static function degreeToAngle($degree = 1)
|
||||||
|
|
@ -264,7 +264,7 @@ class Converter
|
||||||
/**
|
/**
|
||||||
* Convert angle to degrees
|
* Convert angle to degrees
|
||||||
*
|
*
|
||||||
* @param int $angle
|
* @param float $angle
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public static function angleToDegree($angle = 1)
|
public static function angleToDegree($angle = 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue