.. _TranslationHelper-setMaxTranslations: ============================================== TranslationHelper::setMaxTranslations() ============================================== \\nn\\t3::TranslationHelper()->setMaxTranslations(``$maxTranslations``); ---------------------------------------------- Sets the maximum number of translations to be made per instance. Helps with debugging (so that the Deep-L quota is not exhausted by testing) and with TimeOuts if many texts need to be translated. .. code-block:: php $translationHelper->setMaxTranslations( 5 ); // Abort after 5 translations | ``@param $maxTranslations`` | ``@return self`` Source Code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: php public function setMaxTranslations($maxTranslations) { $this->maxTranslations = $maxTranslations; return $this; }