PHP Class Neomerx\JsonApi\Http\Headers\Header

Inheritance: implements Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface
Afficher le fichier Open project: neomerx/json-api Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $name, Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface[] $mediaTypes )
getMediaTypes ( )
getName ( )
parse ( string $header, string $name ) : Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface Parse header.

Méthodes protégées

Méthode Description
newInstance ( string $name, Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface[] $mediaTypes ) : Header
parseMediaType ( integer $position, string $mediaType ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface

Method Details

__construct() public méthode

public __construct ( string $name, Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface[] $mediaTypes )
$name string
$mediaTypes Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface[]

getMediaTypes() public méthode

public getMediaTypes ( )

getName() public méthode

public getName ( )

newInstance() protected static méthode

protected static newInstance ( string $name, Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface[] $mediaTypes ) : Header
$name string
$mediaTypes Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface[]
Résultat Header

parse() public static méthode

Parse header.
public static parse ( string $header, string $name ) : Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface
$header string
$name string
Résultat Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface

parseMediaType() protected static méthode

protected static parseMediaType ( integer $position, string $mediaType ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface
$position integer
$mediaType string
Résultat Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface