Annotation
class Annotation extends TimeEvent
A class that represents an Annotation resource.
Traits
Trait which provides helper methods for converting DateTime input formats.
Properties
protected DateTimeInterface | $time | from TimeEvent |
Methods
__construct(string $description, array $options = [])
Create a new Annotation.
addAttribute(string $attribute, mixed $value)
Attach a single attribute to this object.
from AttributeTrait
string
description()
Return the description of this annotation.
Details
at line 41
__construct(string $description, array $options = [])
Create a new Annotation.
in TimeEvent at line 52
DateTimeInterface
time()
Return the time of this event.
in TimeEvent at line 62
setTime(DateTimeInterface|int|float $time = null)
Set the time for this event.
in AttributeTrait at line 32
addAttributes(array $attributes)
Attach attributes to this object.
in AttributeTrait at line 45
addAttribute(string $attribute, mixed $value)
Attach a single attribute to this object.
in AttributeTrait at line 55
array
attributes()
Return the list of attributes for this object.
at line 55
string
description()
Return the description of this annotation.