model = $model; $this->request = $request; $this->pref_lang = $pref_lang; $this->curlang = $curlang; } /** * Returns the language to set for an object creation or update based on the global context. * * @since 3.8 * * @param int $id The object ID. * @return PLL_Language The language defined from the global context. */ abstract public function get_language( int $id = 0 ): PLL_Language; }