PHP Class Neomerx\JsonApi\Http\Headers\AcceptMediaType

Inheritance: extends MediaType, implements Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface
Exibir arquivo Open project: neomerx/json-api Class Usage Examples

Public Methods

Method Description
__construct ( integer $position, string $type, string $subType, string>\arraynull $parameters = null, float $quality = 1, string>\arraynull $extensions = null )
getExtensions ( )
getPosition ( )
getQuality ( )
parse ( $position, $mediaType ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface

Private Methods

Method Description
parseQualityAndParameters ( array $fields ) : array

Method Details

__construct() public method

public __construct ( integer $position, string $type, string $subType, string>\arraynull $parameters = null, float $quality = 1, string>\arraynull $extensions = null )
$position integer
$type string
$subType string
$parameters string>\arraynull
$quality float
$extensions string>\arraynull

getExtensions() public method

public getExtensions ( )

getPosition() public method

public getPosition ( )

getQuality() public method

public getQuality ( )

parse() public static method

public static parse ( $position, $mediaType ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface
return Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface