original_string: public static function createDefault(string $class): Rule
      {
          $rule = new Rule($class);
  
          $reflection = new \ReflectionClass($class);
          $properties = $reflection->getProperties();
  
          foreach ($properties as $property) {
              /** @var \ReflectionProperty $property */
              $rule->assign($property->getName(), $property->getName());
          }
  
          return $rule;
      }
code: public static function createDefault(string $class): Rule
      {
          $rule = new Rule($class);
  
          $reflection = new \ReflectionClass($class);
          $properties = $reflection->getProperties();
  
          foreach ($properties as $property) {
              /** @var \ReflectionProperty $property */
              $rule->assign($property->getName(), $property->getName());
          }
  
          return $rule;
      }
code_tokens: public static function createDefault ( string $ class ) : Rule { $ rule = new Rule ( $ class ) ; $ reflection = new \ ReflectionClass ( $ class ) ; $ properties = $ reflection -> getProperties ( ) ; foreach ( $ properties as $ property ) { /** @var \ReflectionProperty $property */ $ rule -> assign ( $ property -> getName ( ) , $ property -> getName ( ) ) ; } return $ rule ; }
docstring: Create rule with one-to-one mapping
  
  @param string $class
  
  @return Rule
docstring_tokens: Create rule with one - to - one mapping