Alessandro Manno
Alessandro Manno
We can use strategy pattern (https://github.com/alexmanno/DesignPatternsPHP/tree/master/Behavioral/Strategy) For example: ```php interface SerializerInterface { public function serialize(); public function unseiralize(); } class PHPSerializer implements SerializerInterface { /* implementation */ } class JsonSerializer...
You mean something like this? ```php return [ 'message' => $message, 'cipher' => $this->cipher, 'data' => $this->data, 'options' => $options, 'iv' => $iv ]; ```