Documentation

DataFactory
in package
implements DataFactory

Description of DataFactory

Tags
author

zozlak

Interfaces, Classes, Traits and Enums

DataFactory

Table of Contents

$enforceConstructor  : bool
$blankNodes  : array<string|int, mixed>
$defaultGraph  : DefaultGraph|null
$literals  : array<string|int, mixed>
$namedNodes  : array<string|int, mixed>
$quads  : array<string|int, mixed>
blankNode()  : BlankNode
checkCall()  : bool
defaultGraph()  : DefaultGraph
getCacheCounts()  : array<string|int, stdClass>
importQuad()  : Quad
Wrapper for importTerm() to make phpstan happy.
importTerm()  : Term
literal()  : Literal
namedNode()  : NamedNode
quad()  : Quad
hashLiteral()  : string
hashQuad()  : string
hashTerm()  : string

Properties

$enforceConstructor

public static bool $enforceConstructor = true

$blankNodes

private static array<string|int, mixed> $blankNodes = []

$literals

private static array<string|int, mixed> $literals = []

$namedNodes

private static array<string|int, mixed> $namedNodes = []

$quads

private static array<string|int, mixed> $quads = []

Methods

blankNode()

public static blankNode([string|Stringable|null $iri = null ]) : BlankNode
Parameters
$iri : string|Stringable|null = null
Return values
BlankNode

checkCall()

public static checkCall() : bool
Return values
bool

getCacheCounts()

public static getCacheCounts() : array<string|int, stdClass>
Return values
array<string|int, stdClass>

importQuad()

Wrapper for importTerm() to make phpstan happy.

public static importQuad(Quad $quad) : Quad
Parameters
$quad : Quad
Return values
Quad

importTerm()

public static importTerm(Term $term[, bool $recursive = true ]) : Term
Parameters
$term : Term
$recursive : bool = true
Return values
Term

literal()

public static literal(int|float|string|bool|Stringable $value[, string|Stringable|null $lang = null ][, string|Stringable|null $datatype = null ]) : Literal
Parameters
$value : int|float|string|bool|Stringable
$lang : string|Stringable|null = null
$datatype : string|Stringable|null = null
Return values
Literal

hashLiteral()

private static hashLiteral(string $value, string|null $lang, string $datatype) : string
Parameters
$value : string
$lang : string|null
$datatype : string
Return values
string

hashTerm()

private static hashTerm(Term $t) : string
Parameters
$t : Term
Return values
string

Search results