code: public function validateAttribute($model, $attribute)
      {
          if ($this->range instanceof \Closure) {
              $this->range = call_user_func($this->range, $model, $attribute);
          }
          parent::validateAttribute($model, $attribute);
      }
docs: {@inheritdoc}