PHP Класс Dingo\Blueprint\Resource

Наследование: extends Section
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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