for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Vectorface\SnappyRouter\Encoder;
use Vectorface\SnappyRouter\Response\AbstractResponse;
/**
* An abstract base class for all encoders. Extend this class to implement a
* custom encoder.
* @copyright Copyright (c) 2014, VectorFace, Inc.
* @author Dan Bruce <[email protected]>
*/
abstract class AbstractEncoder implements EncoderInterface
{
// an array of options for the encoder
private $options;
* Constructor for the encoder.
* @param array $options An array of encoder options.
public function __construct($options = array())
$this->options = (array)$options;
}