for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-Http package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\Http\Header\Accept;
/**
* @author Iqbal Maulana <[email protected]>
* @created 7/19/15
class AcceptCharsetHeader extends AbstractAcceptHeader
{
* Regex that match for alphabet, numeric, + and -
const MATCHER = '#^([a-zA-Z0-9+-]+|\*)$#';
* Get header field name.
* @return string
public function getFieldName()
return 'Accept-Charset';
}
* Return accept header value regex.
protected function getFieldValueMatcher()
return self::MATCHER;