private function add(JWESerializer $serializer): self
    {
        $this->serializers[$serializer->name()] = $serializer;

        return $this;
    }
private function add(JWESerializer $serializer): self
    {
        $this->serializers[$serializer->name()] = $serializer;

        return $this;
    }
private function add ( JWESerializer $ serializer ) : self { $ this -> serializers [ $ serializer -> name ( ) ] = $ serializer ; return $ this ; }
Adds a serializer to the manager.

@return JWESerializerManager
Adds a serializer to the manager .