PHP 클래스 Kahlan\Plugin\Monkey

파일 보기 프로젝트 열기: crysalead/kahlan 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_registered array Registered monkey patches.

공개 메소드들

메소드 설명
patch ( string $source, string $dest = null ) Setup a monkey patch.
patched ( string $namespace, string $ref, boolean $isFunc = true, &$substitute = null ) : string Patches the string.
reset ( string $source = null ) Clears the registered references.

메소드 상세

patch() 공개 정적인 메소드

Setup a monkey patch.
public static patch ( string $source, string $dest = null )
$source string A fully namespaced reference string.
$dest string A fully namespaced reference string.

patched() 공개 정적인 메소드

Patches the string.
public static patched ( string $namespace, string $ref, boolean $isFunc = true, &$substitute = null ) : string
$namespace string The namespace.
$ref string The fully namespaced class/function reference string.
$isFunc boolean Boolean indicating if $ref is a function reference.
리턴 string A fully namespaced reference.

reset() 공개 정적인 메소드

Clears the registered references.
public static reset ( string $source = null )
$source string A fully-namespaced reference string or `null` to clear all.

프로퍼티 상세

$_registered 보호되어 있는 정적으로 프로퍼티

Registered monkey patches.
protected static array $_registered
리턴 array