Skip to content

Commit cc5ceb0

Browse files
committed
update phpdocs
1 parent ba705e9 commit cc5ceb0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/helpers.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,91 @@
1515
use Nejcc\PhpDatatypes\Scalar\Integers\Unsigned\UInt32;
1616
use Nejcc\PhpDatatypes\Scalar\Integers\Unsigned\UInt8;
1717

18+
/**
19+
* @param int $value
20+
* @return Int8
21+
*/
1822
function int8(int $value): Int8
1923
{
2024
return new Int8($value);
2125
}
2226

27+
/**
28+
* @param int $value
29+
* @return Int16
30+
*/
2331
function int16(int $value): Int16
2432
{
2533
return new Int16($value);
2634
}
2735

36+
/**
37+
* @param int $value
38+
* @return Int32
39+
*/
2840
function int32(int $value): Int32
2941
{
3042
return new Int32($value);
3143
}
3244

45+
/**
46+
* @param int $value
47+
* @return Int64
48+
*/
3349
function int64(int $value): Int64
3450
{
3551
return new Int64($value);
3652
}
3753

54+
/**
55+
* @param int $value
56+
* @return Int128
57+
*/
3858
function int128(int $value): Int128
3959
{
4060
return new Int128($value);
4161
}
4262

63+
/**
64+
* @param int $value
65+
* @return UInt8
66+
*/
4367
function uint8(int $value): UInt8
4468
{
4569
return new UInt8($value);
4670
}
4771

72+
/**
73+
* @param int $value
74+
* @return UInt16
75+
*/
4876
function uint16(int $value): UInt16
4977
{
5078
return new UInt16($value);
5179
}
5280

81+
/**
82+
* @param int $value
83+
* @return UInt32
84+
*/
5385
function uint32(int $value): UInt32
5486
{
5587
return new UInt32($value);
5688
}
5789

90+
/**
91+
* @param float $value
92+
* @return Float32
93+
*/
5894
function float32(float $value): Float32
5995
{
6096
return new Float32($value);
6197
}
6298

99+
/**
100+
* @param float $value
101+
* @return Float64
102+
*/
63103
function float64(float $value): Float64
64104
{
65105
return new Float64($value);

0 commit comments

Comments
 (0)