dev-master
9999999-devTransforms any callable into Reflector
MIT
The Requires
- php >=5.3
The Development Requires
v0.9.0
0.9.0.0Transforms any callable into Reflector
MIT
The Requires
- php >=5.3
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Transforms any callable into Reflector
Transforms any callable value into Reflector., (*1)
<?php
use function callableToReflector;
$reflector = callableToReflector(function ($x) { return $x; }); // => ReflectionFunction
$reflector = callableToReflector('func'); // => ReflectionFunction
$reflector = callableToReflector([$obj, 'method']); // => ReflectionMethod
$reflector = callableToReflector(['Klass', 'method']); // => ReflectionMethod
$reflector = callableToReflector($invokableObj); // => ReflectionMethod
$reflector = callableToReflector('Klass::method'); // => ReflectionMethod
Yuya Takeyama, (*2)
Transforms any callable into Reflector
MIT
Transforms any callable into Reflector
MIT