| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | public static function createEncrypter(array $algorithms, array $payload_converters = [], array $compression_methods = ['DEF']) |
||
| 26 | { |
||
| 27 | $algorithm_manager = AlgorithmManagerFactory::createAlgorithmManager($algorithms); |
||
| 28 | $payload_converter_manager = PayloadConverterFactory::createPayloadConverter($payload_converters); |
||
| 29 | $compression_manager = CompressionManagerFactory::createCompressionManager($compression_methods); |
||
| 30 | |||
| 31 | return new Encrypter($algorithm_manager, $payload_converter_manager, $compression_manager); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |