public function getStoreByStoreCode($storeCode)
    {

        // query whether or not the store with the passed store code exists
        if (isset($this->stores[$storeCode])) {
            return $this->stores[$storeCode];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid store code %s', $storeCode)
            )
        );
    }
public function getStoreByStoreCode($storeCode)
    {

        // query whether or not the store with the passed store code exists
        if (isset($this->stores[$storeCode])) {
            return $this->stores[$storeCode];
        }

        // throw an exception, if not
        throw new \Exception(
            $this->appendExceptionSuffix(
                sprintf('Found invalid store code %s', $storeCode)
            )
        );
    }
public function getStoreByStoreCode ( $ storeCode ) { // query whether or not the store with the passed store code exists if ( isset ( $ this -> stores [ $ storeCode ] ) ) { return $ this -> stores [ $ storeCode ] ; } // throw an exception, if not throw new \ Exception ( $ this -> appendExceptionSuffix ( sprintf ( 'Found invalid store code %s' , $ storeCode ) ) ) ; }
Return's the store for the passed store code.

@param string $storeCode The store code to return the store for

@return array The requested store
@throws \Exception Is thrown, if the requested store is not available
Return s the store for the passed store code .