original_string: public function get_framework_from_competency(competency $competency) {
          $frameworkid = $competency->get('competencyframeworkid');
          if (!isset($this->frameworks[$frameworkid])) {
              $this->frameworks[$frameworkid] = $competency->get_framework();
          }
          return $this->frameworks[$frameworkid];
      }
code: public function get_framework_from_competency(competency $competency) {
          $frameworkid = $competency->get('competencyframeworkid');
          if (!isset($this->frameworks[$frameworkid])) {
              $this->frameworks[$frameworkid] = $competency->get_framework();
          }
          return $this->frameworks[$frameworkid];
      }
code_tokens: public function get_framework_from_competency ( competency $ competency ) { $ frameworkid = $ competency -> get ( 'competencyframeworkid' ) ; if ( ! isset ( $ this -> frameworks [ $ frameworkid ] ) ) { $ this -> frameworks [ $ frameworkid ] = $ competency -> get_framework ( ) ; } return $ this -> frameworks [ $ frameworkid ] ; }
docstring: Get the framework of a competency.
  
  @param competency $competency The competency.
  @return competency_framework
docstring_tokens: Get the framework of a competency .