PHP 클래스 Dingo\Blueprint\Resource

상속: extends Section
파일 보기 프로젝트 열기: dingo/blueprint 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$actions Illuminate\Support\Collection Collection of actions belonging to a resource.
$annotations Illuminate\Support\Collection Collection of annotations belonging to a resource.
$identifier string Resource identifier.
$reflector ReflectionClass Resource reflection instance.
$requestHeaders array Collection of default request headers belonging to a resource.
$responseHeaders array Collection of default response headers belonging to a resource.

공개 메소드들

메소드 설명
__construct ( string $identifier, ReflectionClass $reflector, Collection $annotations, Collection $actions ) : void Create a new resource instance.
getActions ( ) : Collection Get the actions belonging to the resource.
getDefinition ( ) : string Get the resource definition.
getDescription ( ) : string | null Get the resource description.
getIdentifier ( ) : string Get the resource identifier.
getMethod ( ) : string | null Get the resource method.
getRequestHeaders ( ) : array Get the resource default request headers.
getResponseHeaders ( ) : array Get the resource default response headers.
getUri ( ) : string get the resource URI.
hasRequestHeaders ( ) : boolean Check if resource has default request headers set.
hasResponseHeaders ( ) : boolean Check if resource has default response headers set.

보호된 메소드들

메소드 설명
setResourceOnActions ( ) : void Set the resource on each of the actions.

메소드 상세

__construct() 공개 메소드

Create a new resource instance.
public __construct ( string $identifier, ReflectionClass $reflector, Collection $annotations, Collection $actions ) : void
$identifier string
$reflector ReflectionClass
$annotations Illuminate\Support\Collection
$actions Illuminate\Support\Collection
리턴 void

getActions() 공개 메소드

Get the actions belonging to the resource.
public getActions ( ) : Collection
리턴 Illuminate\Support\Collection

getDefinition() 공개 메소드

Get the resource definition.
public getDefinition ( ) : string
리턴 string

getDescription() 공개 메소드

Get the resource description.
public getDescription ( ) : string | null
리턴 string | null

getIdentifier() 공개 메소드

Get the resource identifier.
public getIdentifier ( ) : string
리턴 string

getMethod() 공개 메소드

Get the resource method.
public getMethod ( ) : string | null
리턴 string | null

getRequestHeaders() 공개 메소드

Get the resource default request headers.
public getRequestHeaders ( ) : array
리턴 array

getResponseHeaders() 공개 메소드

Get the resource default response headers.
public getResponseHeaders ( ) : array
리턴 array

getUri() 공개 메소드

get the resource URI.
public getUri ( ) : string
리턴 string

hasRequestHeaders() 공개 메소드

Check if resource has default request headers set.
public hasRequestHeaders ( ) : boolean
리턴 boolean

hasResponseHeaders() 공개 메소드

Check if resource has default response headers set.
public hasResponseHeaders ( ) : boolean
리턴 boolean

setResourceOnActions() 보호된 메소드

Set the resource on each of the actions.
protected setResourceOnActions ( ) : void
리턴 void

프로퍼티 상세

$actions 보호되어 있는 프로퍼티

Collection of actions belonging to a resource.
protected Collection,Illuminate\Support $actions
리턴 Illuminate\Support\Collection

$annotations 보호되어 있는 프로퍼티

Collection of annotations belonging to a resource.
protected Collection,Illuminate\Support $annotations
리턴 Illuminate\Support\Collection

$identifier 보호되어 있는 프로퍼티

Resource identifier.
protected string $identifier
리턴 string

$reflector 보호되어 있는 프로퍼티

Resource reflection instance.
protected ReflectionClass $reflector
리턴 ReflectionClass

$requestHeaders 보호되어 있는 프로퍼티

Collection of default request headers belonging to a resource.
protected array $requestHeaders
리턴 array

$responseHeaders 보호되어 있는 프로퍼티

Collection of default response headers belonging to a resource.
protected array $responseHeaders
리턴 array