public function __construct($aTypeName, \DateTime $anOccurredOn, $anEventBody) { $this->eventBody = $anEventBody; $this->typeName = $aTypeName; $this->occurredOn = $anOccurredOn; }