# ResponseInterface

Chevere\Interfaces\Response\ResponseInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of defining a success response.

# Methods

# __construct

Parameters

  • ...namedData: mixed

# withStatus

Return an instance with the specified status.

Parameters

  • code: int

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified status.


# withData

Return an instance with the specified data.

Parameters

  • ...namedData: mixed

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified data.


# uuid

Provides access to uuid.

Return

string


# token

Provides access to token.

Return

string


# data

Provides access to data.

Return

array


# status

Provides access to status.

Return

int


# withAddedAttribute

Parameters

  • ...attributes: string

Return

static


# withoutAttribute

Parameters

  • ...attributes: string

Return

static


# hasAttribute

Parameters

  • ...attributes: string

Return

bool


# attributes


Last Updated: 5/1/2021, 2:31:10 PM