The trait Idable provides a method equalsId that in turn relies on the
method getId(). If this method does not exist on a class mixing in this
trait, the method will fail.
Adding the getId() as an abstract method to the trait will make sure it
is available.
Loading history...
52
}
53
54
public function getDescriptionForEvent(string $eventName): string
55
{
56
return $eventName;
57
}
58
59
/*
60
* Get the event names that should be recorded.
61
*/
62
protected static function eventsToBeRecorded(): array
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: