Flake\Core\Collection::getForKey PHP Метод

getForKey() публичный Метод

public getForKey ( $sKey )
    function &getForKey($sKey)
    {
        $aKeys = $this->keys();
        if (!in_array($sKey, $aKeys)) {
            throw new \Exception("\\Flake\\Core\\Collection->getForKey(): key '" . $sKey . "' not found in Collection");
        }
        $oRes = $this->aCollection[$sKey];
        return $oRes;
    }