original_string: public function getCategory()
      {
          $categoryModel = static::getCategoryModel();
          return ($this->type == self::TYPE_CATEGORY) ? $this->hasOne($categoryModel::className(), ['id' => $this->options->category_id]) : null;
      }
code: public function getCategory()
      {
          $categoryModel = static::getCategoryModel();
          return ($this->type == self::TYPE_CATEGORY) ? $this->hasOne($categoryModel::className(), ['id' => $this->options->category_id]) : null;
      }
code_tokens: public function getCategory ( ) { $ categoryModel = static :: getCategoryModel ( ) ; return ( $ this -> type == self :: TYPE_CATEGORY ) ? $ this -> hasOne ( $ categoryModel :: className ( ) , [ 'id' => $ this -> options -> category_id ] ) : null ; }
docstring: Only type "TYPE_CATEGORY"
  @return null|\yii\db\ActiveQuery
docstring_tokens: Only type TYPE_CATEGORY