rtckit/php-sip

View on GitHub
src/Auth/ParamsInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
/**
 * RTCKit\SIP\Auth\ParamsInterface Interface
 */
declare(strict_types = 1);

namespace RTCKit\SIP\Auth;

/**
 * Authentication scheme params interface
 */
interface ParamsInterface
{
    /**
     * Parses authentication scheme parameters out of a string input
     *
     * @param string $input Unparsed authentication parameters
     * @return ParamsInterface Parsed parameters
     */
    public static function parse(string $input): ParamsInterface;

    /**
     * Renders authentication scheme parameters as string
     *
     * @return string Authentication parameters
     */
    public function render(): string;
}