original_string: public function getTemplate($key, $language_id)
      {
          if ($template = EmailTemplateTranslation::findOne([
              'template_id' => EmailTemplate::getIdByKey($key),
              'language_id' => $language_id
          ])) {
              return Template::buildTemplate($template);
          }
  
          return null;
      }
code: public function getTemplate($key, $language_id)
      {
          if ($template = EmailTemplateTranslation::findOne([
              'template_id' => EmailTemplate::getIdByKey($key),
              'language_id' => $language_id
          ])) {
              return Template::buildTemplate($template);
          }
  
          return null;
      }
code_tokens: public function getTemplate ( $ key , $ language_id ) { if ( $ template = EmailTemplateTranslation :: findOne ( [ 'template_id' => EmailTemplate :: getIdByKey ( $ key ) , 'language_id' => $ language_id ] ) ) { return Template :: buildTemplate ( $ template ) ; } return null ; }
docstring: Getting email template model by key
  
  @param string $key
  @param integer $language_id
  @return null|Template
docstring_tokens: Getting email template model by key