src/Vouchers.php
public function generate(int $amount = 1): array
    {
        $codes = [];

        for ($i = 1; $i <= $amount; $i++) {
            $codes[] = $this->getUniqueVoucher();
        }

        return $codes;
    }
public function generate(int $amount = 1): array
    {
        $codes = [];

        for ($i = 1; $i <= $amount; $i++) {
            $codes[] = $this->getUniqueVoucher();
        }

        return $codes;
    }
public function generate ( int $ amount = 1 ) : array { $ codes = [ ] ; for ( $ i = 1 ; $ i <= $ amount ; $ i ++ ) { $ codes [ ] = $ this -> getUniqueVoucher ( ) ; } return $ codes ; }
Generate the specified amount of codes and return
an array with all the generated codes.

@param int $amount
@return array
Generate the specified amount of codes and return an array with all the generated codes .