src/Graviton/RestBundle/HttpFoundation/LinkHeader.php
public static function fromString($headerValue)
    {
        return new self(
            array_map(
                function ($itemValue) use (&$index) {
                    $item = LinkHeaderItem::fromString(trim($itemValue));

                    return $item;
                },
                preg_split('/(".+?"|[^,]+)(?:,|$)/', $headerValue, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE)
            )
        );
    }
public static function fromString($headerValue)
    {
        return new self(
            array_map(
                function ($itemValue) use (&$index) {
                    $item = LinkHeaderItem::fromString(trim($itemValue));

                    return $item;
                },
                preg_split('/(".+?"|[^,]+)(?:,|$)/', $headerValue, 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE)
            )
        );
    }
public static function fromString ( $ headerValue ) { return new self ( array_map ( function ( $ itemValue ) use ( & $ index ) { $ item = LinkHeaderItem :: fromString ( trim ( $ itemValue ) ) ; return $ item ; } , preg_split ( '/(".+?"|[^,]+)(?:,|$)/' , $ headerValue , 0 , PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ) ) ) ; }
Builds a LinkHeader instance from a string.

@param string $headerValue value of complete header

@return LinkHeader
Builds a LinkHeader instance from a string .