for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author: stev leibelt <[email protected]>
* @since: 2016-09-19
*/
namespace Net\Bazzline\Component\Curl\HeaderLine;
class AcceptEncoding extends AbstractHeaderLine
{
/** @var string */
private $prefix;
private $suffix;
* AcceptEncoding constructor.
*
* @param array|string[] $encodings - e.g. array('gzip', 'deflate')
public function __construct(array $encodings)
$this->prefix = 'Accept-Encoding';
$this->suffix = implode($encodings);
}
* @return string
protected function prefix()
return $this->prefix;
protected function suffix()
return $this->suffix;