original_string: public function reset()
      {
          $reflection = new \ReflectionClass(static::class);
          foreach ($reflection->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
              if (!$property->isStatic()) {
                  $this->{$property->getName()} = null;
              }
          }
          return $this;
      }
code: public function reset()
      {
          $reflection = new \ReflectionClass(static::class);
          foreach ($reflection->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) {
              if (!$property->isStatic()) {
                  $this->{$property->getName()} = null;
              }
          }
          return $this;
      }
code_tokens: public function reset ( ) { $ reflection = new \ ReflectionClass ( static :: class ) ; foreach ( $ reflection -> getProperties ( \ ReflectionProperty :: IS_PUBLIC ) as $ property ) { if ( ! $ property -> isStatic ( ) ) { $ this -> { $ property -> getName ( ) } = null ; } } return $ this ; }
docstring: Reset all public properties to null.
  
  @return $this
  @throws \ReflectionException
docstring_tokens: Reset all public properties to null .