@name            getMemberByKey ()

@since            1.0.0
@version         1.4.6
@author          Said İmamoğlu

@param           string $key

@return          mixed           $response
324496
public function getMemberByKey($key)
    {
        $timeStamp = time();
        $result = $this->em->getRepository($this->entity['m']['name'])->findOneBy(array('key_activation' => $key));
        if (is_null($result)) {
            return new ModelResponse($result, 0, 0, null, true, 'E:D:002', 'Unable to find request entry in database.', $timeStamp, time());
        }
        return new ModelResponse($result, 1, 0, null, false, 'S:D:002', 'Entries successfully fetched from database.', $timeStamp, time());
    }
104701
public function getKey($key)
    {
        $key = strtolower($key);
        if (!isset($this->keys[$key])) {
            return null;
        }
        return (string)$this->keys[$key];
    }
27776
public function post($key)
    {
        if ($this->has('post') && isset($this->data['post'][$key]) === true) {
            return $this->data['post'][$key];
        }
        return $key;
    }
607182
public function getConnectionByKey($key, $cb = null)
    {
        if (is_object($key)) {
            return $key->onConnected($cb);
        }
        srand(crc32($key));
        $addr = array_rand($this->servers);
        srand();
        return $this->getConnection($addr, $cb);
    }
797147
protected function getPageByRequestKey($key)
	{
		$page = $this->searchPageByRequestKey($key);

		if (is_null($page)) {
			$localization = $this->searchLocalizationByRequestKey($key);

			if ( ! is_null($localization)) {
				$page = $localization->getMaster();
			}
		}

		return $page;
	}
561465
private function getByPropertyName($key)
    {
        if (($key = $this->getArrayKey($key)) !== static::NOT_FOUND) {
            if (is_array($this->items[$key])) {
                return $this->__wrap($this->items[$key]);
            }

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

        return static::NOT_FOUND;
    }
1283542
public function get($key)
    {
        $token = $this->instance->get($key);
        if (!empty($token)) {
            return $token;
        }

        return null;
    }
932520
public static function get($key = null)
    {
        if (null === self::$instance) {
            self::$instance = new self();
        }

        return $key ? self::$instance[$key] : self::$instance;
    }
669209
public function arrayAccessByKey($key)
    {
        if (! isset($this->nameLookupTable[$key])) {
            return null;
        }

        if (isset($this->items[$this->nameLookupTable[$key]])) {
            return $this->items[$this->nameLookupTable[$key]];
        }

        return null;
    }
1188536
public function get(?string $key = null)
    {
        $key = $this->constructKey($key);

        if (is_null($key)) {
            $array = $this->toArray();

            return $this->count() == 1 ? end($array) : $array;
        }

        return $this->parseKey($key, function ($part, $result) {
            if (isset($result[$part])) {
                return $result[$part];
            }
        });
    }
1367497
protected function getByKey($key)
    {
        return $this->propertyBag()
            ->where('resource_id', $this->resource->getKey())
            ->where('key', $key)
            ->first();
    }
669610
public function sIsMember($key, $member) {
        return $this->send(['sismember', $key, $member], function ($response) {
            return (bool) $response;
        });
    }
835746
public function getOneByKey($key)
	{
		// Note: this switch exists like this because PHP does not have "traditional method overloading".
		switch(gettype($key))
		{
			// Use EntityIdentifier to retrieve.
			case 'object':
				return $this->getOneByIdentifier($key);
			break;

			// Use a composite key to retrieve.
			case 'array':
				return $this->getOneByCompoundKey($key);
			break;

			// Use an actual Identifier string to retrieve.
			case 'string':
				return $this->getOneByUuid($key);
			break;

			// Use Entity to retrieve.
			default:
				return new Payload($key, 'invalid_key_type');
		}
	}
308065
public function getResponseHeader($key = null) {
        if (null != $key) {
            if (array_key_exists($key, $this->response_headers)) {
                return $this->response_headers[$key];
            }
        } else {
            return $this->response_headers;
        }
    }
148206
public function getIssueByKey($key)
    {
        if (array_key_exists($key, $this->issues) && isset($this->issues[$key])) {
            return $this->issues[$key];
        }

        return null;
    }
611243
public function get($key)
    {
        $getResult = $this->getValue($key);
        $unserialized = @unserialize($getResult);

        if (Util::hasInternalExpireTime($unserialized)) {
            $getResult = $unserialized['v'];
        }

        return $getResult;
    }
593535
protected function get($key)
    {
        $this->checkForNonEmptyKey($key);
        if (!isset($this->getBackEndUser()->uc[self::PHPUNIT_SETTINGS_KEY][$key])) {
            return null;
        }

        return $this->getBackEndUser()->uc[self::PHPUNIT_SETTINGS_KEY][$key];
    }