Свойство | Type | Description | |
---|---|---|---|
$actions | Collection of actions belonging to a resource. | ||
$annotations | 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éthode | Description | |
---|---|---|
__construct ( string $identifier, ReflectionClass $reflector, |
Create a new resource instance. | |
getActions ( ) : |
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éthode | Description | |
---|---|---|
setResourceOnActions ( ) : void | Set the resource on each of the actions. |
public __construct ( string $identifier, ReflectionClass $reflector, |
||
$identifier | string | |
$reflector | ReflectionClass | |
$annotations | ||
$actions | ||
Résultat | void |
public getActions ( ) : |
||
Résultat |
public getDefinition ( ) : string | ||
Résultat | string |
public getDescription ( ) : string | null | ||
Résultat | string | null |
public getIdentifier ( ) : string | ||
Résultat | string |
public getRequestHeaders ( ) : array | ||
Résultat | array |
public getResponseHeaders ( ) : array | ||
Résultat | array |
public hasRequestHeaders ( ) : boolean | ||
Résultat | boolean |
public hasResponseHeaders ( ) : boolean | ||
Résultat | boolean |
protected setResourceOnActions ( ) : void | ||
Résultat | void |
protected Collection,Illuminate\Support $actions | ||
Résultat |
protected Collection,Illuminate\Support $annotations | ||
Résultat |
protected ReflectionClass $reflector | ||
Résultat | ReflectionClass |
protected array $requestHeaders | ||
Résultat | array |
protected array $responseHeaders | ||
Résultat | array |