public function getEntityAttribute(string $key)
    {
        if ($this->isRawEntityAttribute($key)) {
            return $this->getEntityAttributeRelation($key);
        }

        return $this->getEntityAttributeValue($key);
    }
public function getEntityAttribute(string $key)
    {
        if ($this->isRawEntityAttribute($key)) {
            return $this->getEntityAttributeRelation($key);
        }

        return $this->getEntityAttributeValue($key);
    }
public function getEntityAttribute ( string $ key ) { if ( $ this -> isRawEntityAttribute ( $ key ) ) { return $ this -> getEntityAttributeRelation ( $ key ) ; } return $ this -> getEntityAttributeValue ( $ key ) ; }
Get the entity attribute.

@param string $key

@return mixed
Get the entity attribute .