| 1 | <?php |
||
| 17 | class AcceptHeader extends AbstractAcceptHeader |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Regex that should match with format and sub format. |
||
| 21 | * Example: text/html, text/plain, application/json, etc. |
||
| 22 | */ |
||
| 23 | const MATCHER = '#^([a-zA-Z+-]+|\*)/(\*|[a-zA-Z0-9+-]+)$#'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get header field name. |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getFieldName() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Return regex rules. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | protected function getFieldValueMatcher() |
||
| 44 | } |
||
| 45 |