laravel-printing
Api
Printer
On this page
Rawilk\Printing\Contracts\Printer
id
/**
* Returns the printer's id.
*
* @return int|string
*/
public function id();
name
/**
* Returns the printer's name.
*
* @return string|null
*/
public function name(): ?string;
description
/**
* Returns the printer's description.
*
* @return string|null
*/
public function description(): ?string;
capabilities
/**
* Returns the printer's capabilities.
*
* @return array
*/
public function capabilities(): array;
trays
/**
* Returns the printer's available trays.
*
* @return array
*/
public function trays(): array;
status
/**
* Returns the printer's current status.
*
* @return string
*/
public function status(): string;
isOnline
/**
* Determine if the printer is currently "online".
*
* @return bool
*/
public function isOnline(): bool;
jobs
/**
* Returns the jobs for a printer.
*
* @return \Illuminate\Support\Collection
*/
public function jobs(): Collection;
toArray
/**
* Returns an array representation of the printer.
* This method is also called if casting the printer to an array ((array) $printer)
*
* @return array
*/
public function toArray(): array;