original_string: public function getRules(): array
      {
          if (count($this->large) === 0) {
              $this->large = $this->apriori();
          }
  
          if (count($this->rules) > 0) {
              return $this->rules;
          }
  
          $this->rules = [];
  
          $this->generateAllRules();
  
          return $this->rules;
      }
code: public function getRules(): array
      {
          if (count($this->large) === 0) {
              $this->large = $this->apriori();
          }
  
          if (count($this->rules) > 0) {
              return $this->rules;
          }
  
          $this->rules = [];
  
          $this->generateAllRules();
  
          return $this->rules;
      }
code_tokens: public function getRules ( ) : array { if ( count ( $ this -> large ) === 0 ) { $ this -> large = $ this -> apriori ( ) ; } if ( count ( $ this -> rules ) > 0 ) { return $ this -> rules ; } $ this -> rules = [ ] ; $ this -> generateAllRules ( ) ; return $ this -> rules ; }
docstring: Get all association rules which are generated for every k-length frequent item set.
  
  @return mixed[][]
docstring_tokens: Get all association rules which are generated for every k - length frequent item set .