src/Auth.php
public function createIdentity(AdapterInterface $adapter): IdentityInterface
    {
        $map = new $this->attribute_map_class($adapter->getAttributeMap(), $this->logger);
        $this->identity = new $this->identity_class($adapter, $map, $this->logger);

        return $this->identity;
    }
public function createIdentity(AdapterInterface $adapter): IdentityInterface
    {
        $map = new $this->attribute_map_class($adapter->getAttributeMap(), $this->logger);
        $this->identity = new $this->identity_class($adapter, $map, $this->logger);

        return $this->identity;
    }
public function createIdentity ( AdapterInterface $ adapter ) : IdentityInterface { $ map = new $ this -> attribute_map_class ( $ adapter -> getAttributeMap ( ) , $ this -> logger ) ; $ this -> identity = new $ this -> identity_class ( $ adapter , $ map , $ this -> logger ) ; return $ this -> identity ; }
Create identity.

@param AdapterInterface $adapter

@return IdentityInterface
Create identity .