PHP Class Dingo\Blueprint\Resource

Inheritance: extends Section
Afficher le fichier Open project: dingo/blueprint Class Usage Examples

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
setResourceOnActions ( ) : void Set the resource on each of the actions.

Method Details

__construct() public méthode

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
Résultat void

getActions() public méthode

Get the actions belonging to the resource.
public getActions ( ) : Collection
Résultat Illuminate\Support\Collection

getDefinition() public méthode

Get the resource definition.
public getDefinition ( ) : string
Résultat string

getDescription() public méthode

Get the resource description.
public getDescription ( ) : string | null
Résultat string | null

getIdentifier() public méthode

Get the resource identifier.
public getIdentifier ( ) : string
Résultat string

getMethod() public méthode

Get the resource method.
public getMethod ( ) : string | null
Résultat string | null

getRequestHeaders() public méthode

Get the resource default request headers.
public getRequestHeaders ( ) : array
Résultat array

getResponseHeaders() public méthode

Get the resource default response headers.
public getResponseHeaders ( ) : array
Résultat array

getUri() public méthode

get the resource URI.
public getUri ( ) : string
Résultat string

hasRequestHeaders() public méthode

Check if resource has default request headers set.
public hasRequestHeaders ( ) : boolean
Résultat boolean

hasResponseHeaders() public méthode

Check if resource has default response headers set.
public hasResponseHeaders ( ) : boolean
Résultat boolean

setResourceOnActions() protected méthode

Set the resource on each of the actions.
protected setResourceOnActions ( ) : void
Résultat void

Property Details

$actions protected_oe property

Collection of actions belonging to a resource.
protected Collection,Illuminate\Support $actions
Résultat Illuminate\Support\Collection

$annotations protected_oe property

Collection of annotations belonging to a resource.
protected Collection,Illuminate\Support $annotations
Résultat Illuminate\Support\Collection

$identifier protected_oe property

Resource identifier.
protected string $identifier
Résultat string

$reflector protected_oe property

Resource reflection instance.
protected ReflectionClass $reflector
Résultat ReflectionClass

$requestHeaders protected_oe property

Collection of default request headers belonging to a resource.
protected array $requestHeaders
Résultat array

$responseHeaders protected_oe property

Collection of default response headers belonging to a resource.
protected array $responseHeaders
Résultat array