Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12373567
CodeMethod.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
774 B
Referenced Files
None
Subscribers
None
CodeMethod.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Keruald\OmniTools\Reflection
;
use
Keruald\OmniTools\Collections\Vector
;
use
ReflectionMethod
;
use
ReflectionParameter
;
class
CodeMethod
extends
CodeFunction
{
///
/// Properties
///
private
ReflectionMethod
$method
;
///
/// Constructor
///
public
static
function
fromReflectionMethod
(
ReflectionMethod
$method
)
:
self
{
$instance
=
new
self
;
$instance
->
method
=
$method
;
return
$instance
;
}
///
/// Arguments helper methods
///
public
function
getArgumentsType
()
:
Vector
{
return
Vector
::
from
(
$this
->
method
->
getParameters
())
->
map
(
fn
(
ReflectionParameter
$param
)
=>
CodeFunction
::
getParameterType
(
$param
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 1, 17:54 (1 d, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3117250
Default Alt Text
CodeMethod.php (774 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment