/** * Get all items in collection * * @return array The collection's source data */ public function all() { $all = parent::all(); $result = array(); foreach ($all as $key => $item) { $result[$item['originalKey']] = $item['value']; } return $result; }
/** * Retrieve attributes derived from the request. * * The request "attributes" may be used to allow injection of any * parameters derived from the request: e.g., the results of path * match operations; the results of decrypting cookies; the results of * deserializing non-form-encoded message bodies; etc. Attributes * will be application and request specific, and CAN be mutable. * * @return array Attributes derived from the request. */ public function getAttributes() { return $this->attributes->all(); }
/** * Get all output items. * * @return array */ public function getOutputs() { return $this->outputs->all(); }