id = $id; $this->type = $type; $this->source = $source; } /** * Returns the ID. * * @return string */ public function id(): string { return $this->id; } /** * Returns the type. * * @return string */ public function type(): string { return $this->type; } /** * Returns the source. * * @return \stdClass */ public function source(): \stdClass { return $this->source; } /** * Returns the object as array. * * @return array */ public function to_array(): array { return array( 'id' => $this->id(), 'type' => $this->type(), 'source' => $this->source(), ); } }