/** * @param Identity $identity * @return $this */ public function add(Identity $identity) { $this->identities[$identity->getUsername()] = $identity; return $this; }