Subject/Entity/SubjectIdentity.php
public function copy(SubjectIdentity $identity)
    {
        $this->provider = $identity->getProvider();
        $this->identifier = $identity->getIdentifier();
    }
public function copy(SubjectIdentity $identity)
    {
        $this->provider = $identity->getProvider();
        $this->identifier = $identity->getIdentifier();
    }
Copy the given subject identity.

@param SubjectIdentity $identity