$cargo
$cargo : \Pho\Framework\Cargo\AbstractCargo
Core cargo variable.
Helps set up the fields of a particle (aka node)
Those cargos contain information on incoming and outgoing edges of the particle.
pack(\Pho\Framework\ParticleInterface $particle) : \Pho\Framework\Loaders\AbstractLoader
Sets up fields.
Given the configurations set in the particle fields (e.g. FIELDS constant), configures the way the class will act.
Fields are stored in particle upper camelized; e.g.
\Pho\Framework\ParticleInterface | $particle | The particle that this loader is associated with. |
The loader object itself, so that the deploy command can be called.
deploy(mixed $cargo) : \Pho\Framework\Loaders\AbstractLoader
Assigns the private variable into the particle's given cargo variable.
mixed | $cargo | The particle's own cargo variable. It's actually a nullable AbstractCargo (?AbstractCargo) |
self
fetchArray(\Pho\Lib\Graph\EntityInterface $entity) : array
Helper method for pack()
\Pho\Lib\Graph\EntityInterface | $entity |
An array where keys are upper-camelized
__construct(array $data = array())
Constructor.
Set to be protected on purpose, so that it cannot be instantiated publicly.
array | $data | Any preliminary data, if available. |