Skip to content

Structure

  • Full name: \Qubus\Expressive\Structure
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

primaryKey

private string $primaryKey

foreignKey

private string $foreignKey

Methods

__construct

Structure constructor

public __construct(string $primaryKey = 'id', string $foreignKey = '%s_id'): mixed

Parameters:

Parameter Type Description
$primaryKey string
$foreignKey string

getPrimaryKey

public getPrimaryKey(string $table): string

Parameters:

Parameter Type Description
$table string

getForeignKey

public getForeignKey(string $table): string

Parameters:

Parameter Type Description
$table string

key

private key(string $key, string $table): string

Parameters:

Parameter Type Description
$key string
$table string


Automatically generated on 2025-10-13