1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\SignatureCalculator\Encoder\Strategy;
6
7 use Team3\PayU\SignatureCalculator\Encoder\Algorithms\AlgorithmInterface;
8
9 interface EncoderStrategyInterface
10 {
11 /**
12 * @param AlgorithmInterface $algorithm
13 *
14 * @return bool
15 */
16 public function supports(AlgorithmInterface $algorithm);
17
18 /**
19 * @param string $data
20 *
21 * @return string
22 */
23 public function encode($data);
24 }
25