2017 © Pedro Peláez
 

library callable_to_reflector

Transforms any callable into Reflector

image

yuyat/callable_to_reflector

Transforms any callable into Reflector

  • Monday, October 13, 2014
  • by yuya-takeyama
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yuyat\callableToReflector

Transforms any callable value into Reflector., (*1)

Usage

<?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

Author

Yuya Takeyama, (*2)

The Versions

13/10 2014

dev-master

9999999-dev

Transforms any callable into Reflector

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

13/10 2014

v0.9.0

0.9.0.0

Transforms any callable into Reflector

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires