SchemaObject
extends Schema
in package
Table of Contents
Properties
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
$array
public
array<string|int, mixed>
$array
$schema
private
Query|null
$schema
= null
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
equals()
public
equals(Base $other) : bool
Parameters
- $other : Base
Return values
boolfromArray()
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
Return values
Base<TypeStored, TypeAccessed>getSchema()
public
getSchema() : Query|null
Return values
Query|nullsetUp()
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