private function getSubmittedVersionNumber(RequestInterface $request)
    {
        $accept  = $request->getHeader('Accept');
        $matches = array();

        preg_match('/^application\/vnd\.([a-z.-_]+)\.v([\d]+)\+([a-z]+)$/', $accept, $matches);

        return isset($matches[2]) ? $matches[2] : null;
    }
private function getSubmittedVersionNumber(RequestInterface $request)
    {
        $accept  = $request->getHeader('Accept');
        $matches = array();

        preg_match('/^application\/vnd\.([a-z.-_]+)\.v([\d]+)\+([a-z]+)$/', $accept, $matches);

        return isset($matches[2]) ? $matches[2] : null;
    }
private function getSubmittedVersionNumber ( RequestInterface $ request ) { $ accept = $ request -> getHeader ( 'Accept' ) ; $ matches = array ( ) ; preg_match ( '/^application\/vnd\.([a-z.-_]+)\.v([\d]+)\+([a-z]+)$/' , $ accept , $ matches ) ; return isset ( $ matches [ 2 ] ) ? $ matches [ 2 ] : null ; }
Returns the version number which was submitted by the client in the
accept header field

@return integer
Returns the version number which was submitted by the client in the accept header field