Свойство | Type | Description | |
---|---|---|---|
$errors | WoohooLabs\Yin\JsonApi\Schema\Error[] |
Méthode | Description | |
---|---|---|
addError ( WoohooLabs\Yin\JsonApi\Schema\Error $error ) | Includes a new error in the error document. | |
getErrors ( ) : WoohooLabs\Yin\JsonApi\Schema\Error[] | ||
getResponse ( WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, Psr\Http\Message\ResponseInterface $response, integer $responseCode = null, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | Returns a response with a status code of $responseCode, containing all the provided sections of the error document. You can also pass additional meta information for the document in the $additionalMeta argument. | |
transformContent ( array $additionalMeta = [] ) : array |
Méthode | Description | |
---|---|---|
getResponseCode ( integer $responseCode ) : integer |
public addError ( WoohooLabs\Yin\JsonApi\Schema\Error $error ) | ||
$error | WoohooLabs\Yin\JsonApi\Schema\Error |
public getErrors ( ) : WoohooLabs\Yin\JsonApi\Schema\Error[] | ||
Résultat | WoohooLabs\Yin\JsonApi\Schema\Error[] |
public getResponse ( WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, Psr\Http\Message\ResponseInterface $response, integer $responseCode = null, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface | ||
$serializer | WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$responseCode | integer | |
$additionalMeta | array | |
Résultat | Psr\Http\Message\ResponseInterface |
protected getResponseCode ( integer $responseCode ) : integer | ||
$responseCode | integer | |
Résultat | integer |
public transformContent ( array $additionalMeta = [] ) : array | ||
$additionalMeta | array | |
Résultat | array |