public static function create(?string $payload, ?string $encodedPayload = null, bool $isPayloadDetached = false): self
    {
        return new self($payload, $encodedPayload, $isPayloadDetached);
    }
public static function create(?string $payload, ?string $encodedPayload = null, bool $isPayloadDetached = false): self
    {
        return new self($payload, $encodedPayload, $isPayloadDetached);
    }
public static function create ( ? string $ payload , ? string $ encodedPayload = null , bool $ isPayloadDetached = false ) : self { return new self ( $ payload , $ encodedPayload , $ isPayloadDetached ) ; }
Creates a JWS object.

@return JWS
Creates a JWS object .