1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\SignatureCalculator\Encoder;
6
7 use Team3\PayU\SignatureCalculator\Encoder\Algorithms\AlgorithmInterface;
8
9 /**
10 * Will encode given string with given algorithm passed as {@link AlgorithmInterface}
11 *
12 * Interface EncoderInterface
13 * @package Team3\PayU\SignatureCalculator\Encoder
14 */
15 interface EncoderInterface
16 {
17 /**
18 * @param string $data
19 * @param AlgorithmInterface $algorithm
20 *
21 * @return string
22 * @throws EncoderException
23 */
24 public function encode($data, AlgorithmInterface $algorithm);
25 }
26