# ResponseInterface

Chevere\Interfaces\Response\ResponseInterface

view source

# Description

Describes the component in charge of defining a success response.

# Methods

# withStatus()

Return an instance with the specified status.

# Parameters

  1. int $code

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

  1. mixed ...$namedData

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


Last Updated: 1/16/2021, 9:23:54 PM