original_string: protected function checkStringValue(string $name, $value)
      {
          if (
              !is_string($value) &&
              !($value instanceof \Closure) &&
              !($value instanceof self) &&
              !($value instanceof StatementInterface)
          ) {
              return $this->handleException(InvalidArgumentException::create(
                  $name,
                  $value,
                  ['string', \Closure::class, self::class, StatementInterface::class]
              ));
          }
  
          if ($value instanceof \Closure) {
              return $this->resolveSubQueryClosure($value);
          }
  
          return $value;
      }
code: protected function checkStringValue(string $name, $value)
      {
          if (
              !is_string($value) &&
              !($value instanceof \Closure) &&
              !($value instanceof self) &&
              !($value instanceof StatementInterface)
          ) {
              return $this->handleException(InvalidArgumentException::create(
                  $name,
                  $value,
                  ['string', \Closure::class, self::class, StatementInterface::class]
              ));
          }
  
          if ($value instanceof \Closure) {
              return $this->resolveSubQueryClosure($value);
          }
  
          return $value;
      }
code_tokens: protected function checkStringValue ( string $ name , $ value ) { if ( ! is_string ( $ value ) && ! ( $ value instanceof \ Closure ) && ! ( $ value instanceof self ) && ! ( $ value instanceof StatementInterface ) ) { return $ this -> handleException ( InvalidArgumentException :: create ( $ name , $ value , [ 'string' , \ Closure :: class , self :: class , StatementInterface :: class ] ) ) ; } if ( $ value instanceof \ Closure ) { return $ this -> resolveSubQueryClosure ( $ value ) ; } return $ value ; }
docstring: Check that value is suitable for being a "string or subquery" property of a query. Retrieves the closure
  subquery.
  
  @param string $name Value name
  @param string|\Closure|self|StatementInterface $value
  @return string|self|StatementInterface
  @throws InvalidArgumentException
  @throws InvalidReturnValueException
docstring_tokens: Check that value is suitable for being a string or subquery property of a query . Retrieves the closure subquery .