Documentation

ExampleDataLoader
in package

Table of Contents

Constants

HEAVY_FIELDS  = 'data,asserts'
These are "heavy" properties which are not cached. i.e.

Properties

$metas  : array<string|int, mixed>|null

Methods

getFull()  : array<string|int, mixed>|null
getMeta()  : array<string|int, mixed>|null
getMetas()  : array<string|int, mixed>
Get a list of all examples, including basic metadata (name, title, workflow).
findMetas()  : array<string|int, mixed>
Get a list of all examples, including basic metadata (name, title, workflow).
createObj()  : ExampleDataInterface

Constants

HEAVY_FIELDS

These are "heavy" properties which are not cached. i.e.

public mixed HEAVY_FIELDS = 'data,asserts'
  • They are generated by $ex->build($example);
  • They are not generated by '$ex->getExamples();'
  • They are returned by $this->getFull()
  • They are not returned by $this->getMeta().

Properties

Methods

getFull()

public getFull(string $name) : array<string|int, mixed>|null
Parameters
$name : string
Return values
array<string|int, mixed>|null

getMeta()

public getMeta(string $name) : array<string|int, mixed>|null
Parameters
$name : string
Return values
array<string|int, mixed>|null

getMetas()

Get a list of all examples, including basic metadata (name, title, workflow).

public getMetas() : array<string|int, mixed>
Tags
throws
ReflectionException
Return values
array<string|int, mixed>

Ex: ['my_example' => ['title' => ..., 'workflow' => ..., 'tags' => ...]]

findMetas()

Get a list of all examples, including basic metadata (name, title, workflow).

protected findMetas() : array<string|int, mixed>
Tags
throws
ReflectionException
Return values
array<string|int, mixed>

Ex: ['my_example' => ['title' => ..., 'workflow' => ..., 'tags' => ...]]


        
On this page

Search results