public function __construct()

in src/WorkplaceSearch/Schema/AnalyticsEvent.php [52:69]


	public function __construct(
		string $type,
		string $query_id,
		int $page,
		string $content_source_id,
		string $document_id,
		int $rank,
	) {
		if (!in_array($type, ['click','feedback'])) {
			throw new InvalidArgumentException('The $type parameter must be one of these values: click,feedback');
		}
		$this->type = $type;
		$this->query_id = $query_id;
		$this->page = $page;
		$this->content_source_id = $content_source_id;
		$this->document_id = $document_id;
		$this->rank = $rank;
	}