src/Repositories/StoreRepository.php
/**
     * Return's an array with the available stores and their
     * store codes as keys.
     *
     * @return array The array with all available stores
     */
Return's an array with the available stores and their
store codes as keys.

@return array The array with all available stores
Return ' s an array with the available stores and their store codes as keys . @return array The array with all available stores
public function findAll()
    {
        $stores = array();
        $this->storesStmt->execute();
        $availableStores = $this->storesStmt->fetchAll();
        foreach ($availableStores as $store) {
            $stores[$store[MemberNames::CODE]] = $store;
        }
        return $stores;
    }
public function findAll ( ) { $ stores = array ( ) ; $ this -> storesStmt -> execute ( ) ; $ availableStores = $ this -> storesStmt -> fetchAll ( ) ; foreach ( $ availableStores as $ store ) { $ stores [ $ store [ MemberNames :: CODE ] ] = $ store ; } return $ stores ; }
Return's an array with the available stores and their
 store codes as keys.
Return ' s an array with the available stores and their store codes as keys .
// initialize the array with the available stores // execute the prepared statement // load the available stores // fetch the stores and assemble them as array with the store code as key // return the array with the stores