Property | 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. |
Method | 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. |
Method | Description | |
---|---|---|
setResourceOnActions ( ) : void | Set the resource on each of the actions. |
public __construct ( string $identifier, ReflectionClass $reflector, |
||
$identifier | string | |
$reflector | ReflectionClass | |
$annotations | ||
$actions | ||
return | void |
public getActions ( ) : |
||
return |
public getDefinition ( ) : string | ||
return | string |
public getDescription ( ) : string | null | ||
return | string | null |
public getIdentifier ( ) : string | ||
return | string |
public getRequestHeaders ( ) : array | ||
return | array |
public getResponseHeaders ( ) : array | ||
return | array |
public hasRequestHeaders ( ) : boolean | ||
return | boolean |
public hasResponseHeaders ( ) : boolean | ||
return | boolean |
protected setResourceOnActions ( ) : void | ||
return | void |
protected Collection,Illuminate\Support $actions | ||
return |
protected Collection,Illuminate\Support $annotations | ||
return |
protected ReflectionClass $reflector | ||
return | ReflectionClass |
protected array $requestHeaders | ||
return | array |
protected array $responseHeaders | ||
return | array |