original_string: public function isPrimary($role)
      {
          if (!$this->handlePrimary($role)) {
              return false;
          }
          $primaryField = $this->getPrimaryField($role);
  
          return !empty($this->owner->{$primaryField});
      }
code: public function isPrimary($role)
      {
          if (!$this->handlePrimary($role)) {
              return false;
          }
          $primaryField = $this->getPrimaryField($role);
  
          return !empty($this->owner->{$primaryField});
      }
code_tokens: public function isPrimary ( $ role ) { if ( ! $ this -> handlePrimary ( $ role ) ) { return false ; } $ primaryField = $ this -> getPrimaryField ( $ role ) ; return ! empty ( $ this -> owner -> { $ primaryField } ) ; }
docstring: Get is primary.
  
  @param [[@doctodo param_type:role]] $role [[@doctodo param_description:role]]
  
  @return [[@doctodo return_type:isPrimary]] [[@doctodo return_description:isPrimary]]
docstring_tokens: Get is primary .