original_string: protected function getPrimaryKey(): array
      {
          $primary = array_flip($this->getTable()->getPrimaryKey());
  
          return array_intersect_key($this->toArray(), $primary);
      }
code: protected function getPrimaryKey(): array
      {
          $primary = array_flip($this->getTable()->getPrimaryKey());
  
          return array_intersect_key($this->toArray(), $primary);
      }
code_tokens: protected function getPrimaryKey ( ) : array { $ primary = array_flip ( $ this -> getTable ( ) -> getPrimaryKey ( ) ) ; return array_intersect_key ( $ this -> toArray ( ) , $ primary ) ; }
docstring: Retrieves an associative array of primary keys, if it exists
  
  @return array
  @throws InvalidPrimaryKeyException
  @throws TableNotFoundException
docstring_tokens: Retrieves an associative array of primary keys if it exists