original_string: public function get_single_version() {
          if ($this->get_version_id_filter() || $this->get_policy_id_filter()) {
              $versions = $this->get_versions();
              return reset($versions);
          }
          return null;
      }
code: public function get_single_version() {
          if ($this->get_version_id_filter() || $this->get_policy_id_filter()) {
              $versions = $this->get_versions();
              return reset($versions);
          }
          return null;
      }
code_tokens: public function get_single_version ( ) { if ( $ this -> get_version_id_filter ( ) || $ this -> get_policy_id_filter ( ) ) { $ versions = $ this -> get_versions ( ) ; return reset ( $ versions ) ; } return null ; }
docstring: If policyid or versionid is specified return one single policy that needs to be shown
  
  If neither policyid nor versionid is specified this method returns null.
  
  When versionid is specified this method will always return an object (this is validated in {@link self::validate_ids()}
  When only policyid is specified this method either returns the current version of the policy or null if there is
  no current version (for example, it is an old policy).
  
  @return mixed|null
docstring_tokens: If policyid or versionid is specified return one single policy that needs to be shown