Waybill
class Waybill (View source)
Main entry point for creating new waybills
Methods
Run WriteHTML function
Export the waybills data to array or CSV
Get the physical label format used by this waybill.
Save the waybills data to PDF
Download the waybills data to PDF
Magic method to convert the waybills type to string
Factory method to create an instance of Waybill
Factory method to create an instance without mpdf instance of Waybill
Details
void
write(array|null $args = null)
Run WriteHTML function
Waybill
mpdf(Mpdf $mpdf)
Setter for $mpdf
Waybill
state(array $state)
Setter for $state
Waybill
path(string $path)
Setter for $path
array
toArray()
Export the waybills data to array or CSV
LabelFormat
format()
Get the physical label format used by this waybill.
mixed
save(string $filename = 'waybills.pdf')
Save the waybills data to PDF
mixed
download(string $filename = 'waybills.pdf')
Download the waybills data to PDF
string
__toString()
Magic method to convert the waybills type to string
static Waybill
of(WaybillProvider $parcelService, Mpdf|null $mpdf = null, LabelFormat|null $format = null)
Factory method to create an instance of Waybill
static Waybill
make(WaybillProvider $parcelService, LabelFormat|null $format = null)
Factory method to create an instance without mpdf instance of Waybill