ReadsQueueAttributes
trait ReadsQueueAttributes (View source)
Traits
Methods
mixed
getAttributeValue(object $target, string $attributeClass, string|null $property = null, mixed $default = null)
Get a configuration value from an attribute, falling back to a property.
from
ReadsClassAttributes
mixed
extractAttributeValue(object $instance)
Extract the value from an attribute instance.
from
ReadsClassAttributes
object|null
getAttributeInstance(object $target, string $attributeClass)
Get an instance of the given attribute class from the target class or its parents.
from
ReadsClassAttributes
Details
protected mixed
getAttributeValue(object $target, string $attributeClass, string|null $property = null, mixed $default = null)
Get a configuration value from an attribute, falling back to a property.
protected mixed
extractAttributeValue(object $instance)
Extract the value from an attribute instance.
protected object|null
getAttributeInstance(object $target, string $attributeClass)
Get an instance of the given attribute class from the target class or its parents.