public static function pack(ParticleInterface $particle): AbstractLoader 
    {
        $obj = new FieldsLoader;
        $obj->fields = [];
        $fields = [];

        $obj->cargo->fields = self::fetchArray($particle);

        return $obj;
    }
public static function pack(ParticleInterface $particle): AbstractLoader 
    {
        $obj = new FieldsLoader;
        $obj->fields = [];
        $fields = [];

        $obj->cargo->fields = self::fetchArray($particle);

        return $obj;
    }
public static function pack ( ParticleInterface $ particle ) : AbstractLoader { $ obj = new FieldsLoader ; $ obj -> fields = [ ] ; $ fields = [ ] ; $ obj -> cargo -> fields = self :: fetchArray ( $ particle ) ; return $ obj ; }
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.
* birthday becomes Birthday
* join_time becomes JoinTime
* joinTime becomes JoinTime

{@inheritDoc}
Sets up fields .