/** * Find Key value in collection, returns default on failure * * @param null $key Key to be searched * @param bool $default Default value to return on failure * @return array|bool|mixed */ public function get($key = null, $default = false) { if (!is_null($key)) { $key = str_replace('_', '-', strtolower($key)); } return parent::get($key, $default); }
/** * Get a header * * {@inheritdoc} * * @see DataCollection::get() * @param string $key The name of the header to return * @param mixed $default_val The default value of the header if it contains no value * @access public * @return mixed */ public function get($key, $default_val = null) { $key = static::normalizeName($key); return parent::get($key, $default_val); }
/** * Get a header * * {@inheritdoc} * * @see DataCollection::get() * @param string $key The key of the header to return * @param mixed $default_val The default value of the header if it contains no value * @return mixed */ public function get($key, $default_val = null) { $key = $this->normalizeKey($key); return parent::get($key, $default_val); }