Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | CRAP |
<?php | |
/** | |
* @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
*/ | |
namespace Team3\PayU\SignatureCalculator\Encoder; | |
use Team3\PayU\SignatureCalculator\Encoder\Algorithms\AlgorithmInterface; | |
/** | |
* Will encode given string with given algorithm passed as {@link AlgorithmInterface} | |
* | |
* Interface EncoderInterface | |
* @package Team3\PayU\SignatureCalculator\Encoder | |
*/ | |
interface EncoderInterface | |
{ | |
/** | |
* @param string $data | |
* @param AlgorithmInterface $algorithm | |
* | |
* @return string | |
* @throws EncoderException | |
*/ | |
public function encode($data, AlgorithmInterface $algorithm); | |
} |