class RowsMetadata (View source)

This class represents metadata for database rows, including the number of rows fetched and affected by a query. Provides methods to get and set these values.

Methods:

  • getFetched(): int: Retrieves the fetch results.
  • setFetched(int $fetched): self: Sets the fetch results.
  • getAffected(): int: Retrieves the affected results.
  • setAffected(int $affected): self: Sets the affected results.

Fields:

  • $fetched: The number of rows fetched.
  • $affected: The number of rows affected.

Properties

int $fetched
int $affected

Methods

int
getFetched()

Gets the number of rows fetched.

setFetched(int $fetched)

Sets the number of rows fetched.

int
getAffected()

Gets the number of rows affected.

setAffected(int $affected)

Sets the number of rows affected.

Details

int getFetched()

Gets the number of rows fetched.

Return Value

int

The number of rows fetched.

RowsMetadata setFetched(int $fetched)

Sets the number of rows fetched.

Parameters

int $fetched

The number of rows fetched.

Return Value

RowsMetadata

int getAffected()

Gets the number of rows affected.

Return Value

int

The number of rows affected.

RowsMetadata setAffected(int $affected)

Sets the number of rows affected.

Parameters

int $affected

The number of rows affected.

Return Value

RowsMetadata