Waybill
class Waybill (View source)
Main entry point for creating new waybills
Methods
void
write(array|null $args = null)
Run WriteHTML function
array
toArray()
Export the waybills data to array or CSV
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
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
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(ParcelService $parcelService, Mpdf|null $mpdf = null)
Factory method to create an instance of Waybill
static Waybill
make(ParcelService $parcelService)
Factory method to create an instance without mpdf instance of Waybill