FixtureBlueprint
class FixtureBlueprint (View source)
A blueprint on how to create instances of a certain {@link DataObject} subclass.
Relies on a {@link FixtureFactory} to manage database relationships between instances, and manage the mappings between fixture identifiers and their database IDs.
Properties
static private | $dependencies |
Methods
__construct(string $name, string $class = null, array $defaults = array())
No description
createObject(string $identifier, array $data = null, array $fixtures = null)
No description
$this
setDefaults(array $defaults)
No description
array
getDefaults()
No description
string
getClass()
No description
$this
addCallback(string $type, callable $callback)
See class documentation.
$this
removeCallback(string $type, callable $callback)
No description
Details
__construct(string $name, string $class = null, array $defaults = array())
DataObject
createObject(string $identifier, array $data = null, array $fixtures = null)
$this
setDefaults(array $defaults)
array
getDefaults()
string
getClass()
$this
addCallback(string $type, callable $callback)
See class documentation.