AppResource
abstract class AppResource extends Resource
Traits
Constants
| CLAUDE_DOMAIN_SUFFIX |
|
Properties
| static protected array<string, null|list<object>|object> | $attributeCache | from ReadsAttributes | |
| protected null|array<string, mixed> | $meta | from HasMeta | |
| protected string | $name | from Primitive | |
| protected string | $title | from Primitive | |
| protected string | $description | from Primitive | |
| protected string | $uri | from Resource | |
| protected string | $mimeType | ||
| protected string | $defaultUriScheme |
Methods
Resolve the nearest matching attribute in the class hierarchy.
Resolve all matching attributes in the class hierarchy.
Set response metadata using an array or key-value pair.
Merge the resolved icons into the primitive array.
Determine whether the primitive may be registered for this request.
Convert the application resource to an array.
Resolve application metadata for the current server URL.
Get the application library script tags.
Details
in
ReadsAttributes at line 24
protected mixed
resolveAttribute(string $attributeClass)
Resolve the nearest matching attribute in the class hierarchy.
in
ReadsAttributes at line 56
protected array
resolveAttributes(string $attributeClass)
Resolve all matching attributes in the class hierarchy.
in
ReadsAttributes at line 82
static void
flushState()
Flush all static state.
in
HasIcons at line 19
array
resolvedIcons()
Resolve icons from attributes and the primitive's icons method.
in
HasMeta at line 21
void
setMeta(array|string $meta, mixed $value = null)
Set response metadata using an array or key-value pair.
in
HasMeta at line 46
array
mergeMeta(array $baseArray)
Merge metadata into the given response array.
in
Primitive at line 34
string
name()
Get the primitive name.
in
Primitive at line 44
string
title()
Get the primitive title.
in
Primitive at line 54
string
description()
Get the primitive description.
in
Primitive at line 66
array|null
meta()
Get the primitive metadata.
in
Primitive at line 76
array
icons()
Get the primitive icons.
in
Primitive at line 89
protected array
mergeIcons(array $baseArray)
Merge the resolved icons into the primitive array.
in
Primitive at line 103
bool
eligibleForRegistration()
Determine whether the primitive may be registered for this request.
in
Resource at line 62
array
toMethodCall()
Convert the resource to a method call.
at line 62
array
toArray()
Convert the application resource to an array.
in
HasAnnotations at line 19
array
annotations()
Get the primitive annotations.
in
HasAnnotations at line 68
protected array
allowedAnnotations()
Get the annotation types allowed on this primitive.
in
Resource at line 28
string
uri()
Get the resource URI or URI template.
in
Resource at line 50
string
mimeType()
Get the resource MIME type.
at line 22
AppMeta
appMeta()
Get the application metadata.
at line 34
array
resolvedAppMeta()
Resolve application metadata for the current server URL.
at line 49
string
libraryScripts()
Get the application library script tags.