Get attribute

@param  $key
@return string
551214
private function getAttribute($key)
    {
        return (isset($this->attributes[$key]) && $this->attributes[$key]) ? $this->attributes[$key] : '';
    }
260450
public function getAttribute($key)
    {
        return isset($this->options['attributes'][$key])
        ? $this->options['attributes'][$key]
        : false;
    }
941471
public function getUnmutatedAttribute($key)
    {
        if ($this->isBaseAttribute($key))
        {
            return parent::getAttribute($key);
        } else
        {
            return $this->getSource()->getAttributeFromArray($key);
        }
    }
1303212
protected function getCurrentValue($key)
    {
        $key = $this->removeBrackets($key);

        if ($this->getConfig('method') === "GET" && $this->request->hasGet($key)) {
            return $this->request->get($key);
        }

        if ($this->getConfig('method') === "POST" && $this->request->hasPost($key)) {
            return $this->request->post($key);
        }

        if (!is_null($this->associatedEntity)) {
            $prefix = $this->keys['POST_WRAP'] . '.' . $this->associatedEntity->getInputName() . ".";
            $attributeName = str_replace($prefix, "", $key);
            if (isset($this->associatedEntity->{$attributeName})) {
                return $this->associatedEntity->{$attributeName};
            }
        }
    }
467272
public function getEntityAttribute(string $key)
    {
        if ($this->isRawEntityAttribute($key)) {
            return $this->getEntityAttributeRelation($key);
        }

        return $this->getEntityAttributeValue($key);
    }
717945
protected function getEntityAttributeName(string $key): string
    {
        return $this->isRawEntityAttribute($key) ? camel_case(str_ireplace(['raw', 'object'], ['', ''], $key)) : $key;
    }
382837
public function __getter($key)
    {
        if (isset($key, $this->ignoreData[$key])) {
            return $this->ignoreData[$key];
        }

        $attrs = $this->getAttrs();

        $value = null;

        if (isset($attrs[$key], $attrs[$key]['type'])) {
            if (in_array($attrs[$key]['type'], array(self::DATA_TYPE_REFERENCE, self::DATA_TYPE_REFERENCES))) {
                return $this->loadRef($key);
            } elseif (in_array($attrs[$key]['type'], array(self::DATA_TYPE_EMBED, self::DATA_TYPE_EMBEDS))) {
                return $this->loadEmbed($key);
            }
        }

        if (isset($this->cleanData[$key])) {
            $value = $this->parseValue($key, $this->cleanData[$key],$this->getAttrs());
            return $value;
        }

    }
735634
protected function getAttributeValue($key)
    {
        $value = $this->getAttributeFromArray($key);
        // If the attribute has a get mutator, we will call that then return what
        // it returns as the value, which is useful for transforming values on
        // retrieval from the model to a form that is more useful for usage.
        if ($this->hasGetMutator($key)) {
            return $this->mutateAttribute($key, $value);
        }
        // If the attribute exists within the cast array, we will convert it to
        // an appropriate native PHP type dependant upon the associated value
        // given with the key in the pair. Dayle made this comment line up.
        if ($this->hasCast($key)) {
            $value = $this->castAttribute($key, $value);
        }

        return $value;
    }
511729
protected function getAttributeFromArray($key)
    {
        if (array_key_exists($key, $this->attributes)) {
            return $this->attributes[$key];
        }

        return null;
    }
158117
public function getAttribute($key)
    {
        if ( ! isset($this->attr[$key])) {
            return null;
        }
        $value = $this->attr[$key]['value'];
        if (is_string($value) && ! is_null($this->encode)) {
            // convert charset
            $this->attr[$key]['value'] = $this->encode->convert($value);
        }

        return $this->attr[$key];
    }
661129
public function getAttribute($key)
    {
        if (array_key_exists($key, $this->getMediaFiles())) {
            return $this->media_files[$key];
        }

        return parent::getAttribute($key);
    }
964942
public function getAttribute($key)
    {
        if (array_key_exists($key, $this->attachedFiles)) {
            return $this->attachedFiles[ $key ];
        }

        return parent::getAttribute($key);
    }
318094
public function getAttribute($key)
    {
    	// Sequence validation
    	$this->ensureAuthenticationCallSuccessful();

        if ($this->_hasAttribute($key)) {
            return $this->_attributes[$key];
        }
    }
706423
public function getAttribute($key, $subKey = null)
    {
        if (! $key) {
            return;
        }

        // We'll normalize the given key to prevent case sensitivity issues.
        $key = $this->normalizeAttributeKey($key);

        if (is_null($subKey) && $this->hasAttribute($key)) {
            return $this->attributes[$key];
        } elseif ($this->hasAttribute($key, $subKey)) {
            return $this->attributes[$key][$subKey];
        }
    }
1060275
public function getAttribute($key)
    {
        if ($this->isKeyReturningTranslationText($key)) {
            if ($translation = $this->getTranslation()) {
                return $translation->$key;
            }

            # fallback: try to find default locale values
            if ($translation = $this->getTranslation(\localizer\getDefault()->id())) {
                return $translation->$key;
            }

            return null;
        }

        return parent::getAttribute($key);
    }
979975
public function getAttributeValue($key)
    {
        $value = parent::getAttributeValue($key);

        if ($value instanceof Carbon && $this->timestamp_get_with_user_timezone) {
            $value->setTimezone($this->getAuthUserDateTimezone());
        }

        return $value;
    }
63764
public function get($key)
    {
        if (!isset($this->attributes[$key])) {
            return false;
        }

        return $this->attributes[$key];
    }