Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
setResourceOnActions ( ) : void | Set the resource on each of the actions. |
public __construct ( string $identifier, ReflectionClass $reflector, |
||
$identifier | string | |
$reflector | ReflectionClass | |
$annotations | ||
$actions | ||
Результат | void |
public getActions ( ) : |
||
Результат |
public getDefinition ( ) : string | ||
Результат | string |
public getDescription ( ) : string | null | ||
Результат | string | null |
public getIdentifier ( ) : string | ||
Результат | string |
public getRequestHeaders ( ) : array | ||
Результат | array |
public getResponseHeaders ( ) : array | ||
Результат | array |
public hasRequestHeaders ( ) : boolean | ||
Результат | boolean |
public hasResponseHeaders ( ) : boolean | ||
Результат | boolean |
protected setResourceOnActions ( ) : void | ||
Результат | void |
protected Collection,Illuminate\Support $actions | ||
Результат |
protected Collection,Illuminate\Support $annotations | ||
Результат |
protected ReflectionClass $reflector | ||
Результат | ReflectionClass |
protected array $requestHeaders | ||
Результат | array |
protected array $responseHeaders | ||
Результат | array |