code: public function copy(SubjectIdentity $identity)
      {
          $this->provider = $identity->getProvider();
          $this->identifier = $identity->getIdentifier();
      }
docs: Copy the given subject identity.
  
  @param SubjectIdentity $identity