PHP Class Ouzo\Utilities\DynamicProxy

ファイルを表示 Open project: letsdrink/ouzo Class Usage Examples

Public Methods

Method Description
extractMethodHandler ( $proxy ) : mixed Extracts method handler from proxy object.
newInstance ( $className, $methodHandler ) : null Creates a proxy for the given class.

Private Methods

Method Description
getClassMethods ( ReflectionClass $class ) : ReflectionMetho\ReflectionMethod[]
getParameterDeclaration ( ReflectionFunctionAbstract $method )
getProxyClassDefinition ( $name, $className )

Method Details

extractMethodHandler() public static method

Extracts method handler from proxy object.
public static extractMethodHandler ( $proxy ) : mixed
$proxy
return mixed

newInstance() public static method

Returned object dispatches method invocations to $methodHandler.
public static newInstance ( $className, $methodHandler ) : null
$className
$methodHandler
return null