public function __construct()

in src/CloudEvent.php [41:61]


    public function __construct(
        string $id,
        string $source,
        string $specversion,
        string $type,
        ?string $datacontenttype,
        ?string $dataschema,
        ?string $subject,
        ?string $time,
        $data
    ) {
        $this->id = $id;
        $this->source = $source;
        $this->specversion = $specversion;
        $this->type = $type;
        $this->datacontenttype = $datacontenttype;
        $this->dataschema = $dataschema;
        $this->subject = $subject;
        $this->time = $time;
        $this->data = $data;
    }