Skip to content

Class Topic

Class \RdKafka\Metadata\Topic

Methods

__construct()

public __construct ( 
    string $topic, 
    \RdKafka\Metadata\Collection $partitions, 
    int $err
 ): 
Parameters
topic string
partitions \RdKafka\Metadata\Collection
err int

getErr()

public getErr (  ): int
Returns
int

getPartitions()

public getPartitions (  ): \RdKafka\Metadata\Collection|\RdKafka\Metadata\Partition[]
Returns
\RdKafka\Metadata\Collection|\RdKafka\Metadata\Partition[]

getTopic()

public getTopic (  ): string
Returns
string

Test Coverage 💚

  • 💚 Lines: 100% (6 / 6)
  • 💚 Methods: 100% (4 / 4)