OrderSheet
class OrderSheet (View source)
Main entry point for creating new order sheets
Methods
Setter for $count
Generate several order lines for each order.
Setter for $state
Setter for $path
Setter for $header
Export the order sheet data to array or CSV
Export the order sheet data to CSV
Export the order sheet data to XLSX
Magic method to convert the order sheet type to string
Factory method to create an instance of OrderSheet
Details
OrderSheet
count(int $count)
Setter for $count
OrderSheet
bundle(int $bundleSize)
Generate several order lines for each order.
OrderSheet
state(array $state)
Setter for $state
OrderSheet
path(string $path)
Setter for $path
OrderSheet
header(bool $header = true)
Setter for $header
array
toArray()
Export the order sheet data to array or CSV
string
csv()
Export the order sheet data to CSV
void
xlsx(string $filename = 'order_sheet.xlsx')
Export the order sheet data to XLSX
string
__toString()
Magic method to convert the order sheet type to string
static OrderSheet
of(OrderSheetType $orderSheetType)
Factory method to create an instance of OrderSheet