Documentation

Fixture extends Schema
in package

Tags
extends

Schema<string, Table, Table>

Table of Contents

Constants

TABLES  = 'tables'

Properties

$schema  : Query|null
$tables  : array<string, Table>

Methods

createIn()  : void
equals()  : bool
fromArray()  : Base<TypeStored, TypeAccessed>
fromYamlFile()  : Base<TypeStored, TypeAccessed>
getSchema()  : Query|null
getTableNames()  : array<string|int, string>
getTables()  : array<string, Table>
setUp()  : void
tearDown()  : void
withSchema()  : Schema<TypeStored, TypeAccessed>
__construct()  : mixed
addTable()  : void

Constants

TABLES

public mixed TABLES = 'tables'

Properties

Methods

createIn()

public createIn(PDO $pdo) : void
Parameters
$pdo : PDO

equals()

public equals(Base $other) : bool
Parameters
$other : Base
Return values
bool

fromArray()

public static fromArray(array{tables: array>}>} $array) : Base<TypeStored, TypeAccessed>
Parameters
$array : array{tables: array>}>}
Return values
Base<TypeStored, TypeAccessed>

fromYamlFile()

public static fromYamlFile(string $pathToFile) : Base<TypeStored, TypeAccessed>
Parameters
$pathToFile : string
Tags
throws
BaseException

if YAML does not parse to an array

Return values
Base<TypeStored, TypeAccessed>

getTableNames()

public getTableNames() : array<string|int, string>
Return values
array<string|int, string>

getTables()

public getTables() : array<string, Table>
Return values
array<string, Table>

setUp()

public setUp(PDO $pdo) : void
Parameters
$pdo : PDO

tearDown()

public tearDown(PDO $pdo) : void
Parameters
$pdo : PDO

withSchema()

public withSchema(Query $schema) : Schema<TypeStored, TypeAccessed>
Parameters
$schema : Query
Return values
Schema<TypeStored, TypeAccessed>

__construct()

protected __construct(array{tables: array>}>} $config) : mixed
Parameters
$config : array{tables: array>}>}

        
On this page

Search results