final class PgSqlTableSample

Describes a TABLESAMPLE relation, sampling method, and repeatable seed.

Properties§

public string $tableName
public string $sourceSql
public string $aliasSql
public string $percentageSql
public ?string $seedSql
public int $startOffset
public int $endOffset

Methods§

public function __construct(
    public string $tableName,
    public string $sourceSql,
    public string $aliasSql,
    public PgSqlTableSampleMethod $method,
    public string $percentageSql,
    public ?string $seedSql,
    public int $startOffset,
    public int $endOffset,
)

Initializes the collaborators and state used by this table sample.

Parameters

$tableNamestring
$sourceSqlstring
$aliasSqlstring
$methodPgSqlTableSampleMethod
$percentageSqlstring
$seedSql?string
$startOffsetint
$endOffsetint

Throws

InvalidArgumentException
Calls 1
  • new InvalidArgumentException line 29

Test cases 15§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 13

Relations§

Instantiated in 1
Type declarations 3