original_string: public function validateConverterClass($attribute, $params)
      {
          $className = $this->$attribute;
          if (class_exists($className) === true) {
              if (new $className instanceof MeasureConverterInterface === false) {
                  $this->addError($attribute, MeasureHelper::t('Class does not implement `DevGroup\Measure\converters\MeasureConverterInterface` interface'));
              }
          } else {
              $this->addError($attribute, MeasureHelper::t('Class not found'));
          }
      }
code: public function validateConverterClass($attribute, $params)
      {
          $className = $this->$attribute;
          if (class_exists($className) === true) {
              if (new $className instanceof MeasureConverterInterface === false) {
                  $this->addError($attribute, MeasureHelper::t('Class does not implement `DevGroup\Measure\converters\MeasureConverterInterface` interface'));
              }
          } else {
              $this->addError($attribute, MeasureHelper::t('Class not found'));
          }
      }
code_tokens: public function validateConverterClass ( $ attribute , $ params ) { $ className = $ this -> $ attribute ; if ( class_exists ( $ className ) === true ) { if ( new $ className instanceof MeasureConverterInterface === false ) { $ this -> addError ( $ attribute , MeasureHelper :: t ( 'Class does not implement `DevGroup\Measure\converters\MeasureConverterInterface` interface' ) ) ; } } else { $ this -> addError ( $ attribute , MeasureHelper :: t ( 'Class not found' ) ) ; } }
docstring: Validate the converter class name
  @param string $attribute
  @param array $params
docstring_tokens: Validate the converter class name