PHP 클래스 Illuminate\Support\Facades\Facade

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

보호된 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Contracts\Foundation\Application The application instance being facaded.
$resolvedInstance array The resolved object instances.

공개 메소드들

메소드 설명
__callStatic ( string $method, array $args ) : mixed Handle dynamic, static calls to the object.
clearResolvedInstance ( string $name ) : void Clear a resolved facade instance.
clearResolvedInstances ( ) : void Clear all of the resolved instances.
getFacadeApplication ( ) : Illuminate\Contracts\Foundation\Application Get the application instance behind the facade.
getFacadeRoot ( ) : mixed Get the root object behind the facade.
setFacadeApplication ( Illuminate\Contracts\Foundation\Application $app ) : void Set the application instance.
shouldReceive ( ) : Expectation Initiate a mock expectation on the facade.
spy ( ) : void Convert the facade into a Mockery spy.
swap ( mixed $instance ) : void Hotswap the underlying instance behind the facade.

보호된 메소드들

메소드 설명
createFreshMockInstance ( string $name ) : Expectation Create a fresh mock instance for the given class.
createMockByName ( string $name ) : Mockery\MockInterface Create a fresh mock instance for the given class.
getFacadeAccessor ( ) : string Get the registered name of the component.
getMockableClass ( ) : string | null Get the mockable class for the bound instance.
isMock ( ) : boolean Determines whether a mock is set as the instance of the facade.
resolveFacadeInstance ( string | object $name ) : mixed Resolve the facade root instance from the container.

메소드 상세

__callStatic() 공개 정적인 메소드

Handle dynamic, static calls to the object.
public static __callStatic ( string $method, array $args ) : mixed
$method string
$args array
리턴 mixed

clearResolvedInstance() 공개 정적인 메소드

Clear a resolved facade instance.
public static clearResolvedInstance ( string $name ) : void
$name string
리턴 void

clearResolvedInstances() 공개 정적인 메소드

Clear all of the resolved instances.
public static clearResolvedInstances ( ) : void
리턴 void

createFreshMockInstance() 보호된 정적인 메소드

Create a fresh mock instance for the given class.
protected static createFreshMockInstance ( string $name ) : Expectation
$name string
리턴 Mockery\Expectation

createMockByName() 보호된 정적인 메소드

Create a fresh mock instance for the given class.
protected static createMockByName ( string $name ) : Mockery\MockInterface
$name string
리턴 Mockery\MockInterface

getFacadeAccessor() 보호된 정적인 메소드

Get the registered name of the component.
protected static getFacadeAccessor ( ) : string
리턴 string

getFacadeApplication() 공개 정적인 메소드

Get the application instance behind the facade.
public static getFacadeApplication ( ) : Illuminate\Contracts\Foundation\Application
리턴 Illuminate\Contracts\Foundation\Application

getFacadeRoot() 공개 정적인 메소드

Get the root object behind the facade.
public static getFacadeRoot ( ) : mixed
리턴 mixed

getMockableClass() 보호된 정적인 메소드

Get the mockable class for the bound instance.
protected static getMockableClass ( ) : string | null
리턴 string | null

isMock() 보호된 정적인 메소드

Determines whether a mock is set as the instance of the facade.
protected static isMock ( ) : boolean
리턴 boolean

resolveFacadeInstance() 보호된 정적인 메소드

Resolve the facade root instance from the container.
protected static resolveFacadeInstance ( string | object $name ) : mixed
$name string | object
리턴 mixed

setFacadeApplication() 공개 정적인 메소드

Set the application instance.
public static setFacadeApplication ( Illuminate\Contracts\Foundation\Application $app ) : void
$app Illuminate\Contracts\Foundation\Application
리턴 void

shouldReceive() 공개 정적인 메소드

Initiate a mock expectation on the facade.
public static shouldReceive ( ) : Expectation
리턴 Mockery\Expectation

spy() 공개 정적인 메소드

Convert the facade into a Mockery spy.
public static spy ( ) : void
리턴 void

swap() 공개 정적인 메소드

Hotswap the underlying instance behind the facade.
public static swap ( mixed $instance ) : void
$instance mixed
리턴 void

프로퍼티 상세

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

The application instance being facaded.
protected static Application,Illuminate\Contracts\Foundation $app
리턴 Illuminate\Contracts\Foundation\Application

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

The resolved object instances.
protected static array $resolvedInstance
리턴 array