Documentation

SchemaObject extends Schema
in package

Table of Contents

Properties

$array  : array<string|int, mixed>
$schema  : Query|null

Methods

__construct()  : mixed
createIn()  : void
equals()  : bool
fromArray()  : Base<TypeStored, TypeAccessed>
fromYamlFile()  : Base<TypeStored, TypeAccessed>
getSchema()  : Query|null
setUp()  : void
tearDown()  : void
withSchema()  : Schema<TypeStored, TypeAccessed>

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $array) : mixed
Parameters
$array : array<string|int, mixed>

createIn()

public createIn(PDO $pdo) : void
Parameters
$pdo : PDO
Tags
throws
SchemaException

if schema not defined

fromArray()

public static fromArray(array<string|int, mixed> $array) : Base<TypeStored, TypeAccessed>
Parameters
$array : array<string|int, mixed>
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>

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>

        
On this page

Search results