public function __construct()

in src/WorkplaceSearch/Schema/ContentSource.php [78:103]


	public function __construct(
		string $id,
		string $service_type,
		string $created_at,
		string $last_updated_at,
		bool $is_remote,
		array $details,
		array $groups,
		string $name,
		string $context,
		bool $is_searchable,
	) {
		$this->id = $id;
		$this->service_type = $service_type;
		$this->created_at = $created_at;
		$this->last_updated_at = $last_updated_at;
		$this->is_remote = $is_remote;
		$this->details = $details;
		$this->groups = $groups;
		$this->name = $name;
		if (!in_array($context, ['organization','private'])) {
			throw new InvalidArgumentException('The $context parameter must be one of these values: organization,private');
		}
		$this->context = $context;
		$this->is_searchable = $is_searchable;
	}