Api

Printer

Rawilk\Printing\Contracts\Printer

/**
 * Returns the printer's id.
 *
 * @return int|string
 */
public function id();
/**
 * Returns the printer's name.
 *
 * @return string|null
 */
public function name(): ?string;
/**
 * Returns the printer's description.
 *
 * @return string|null
 */
public function description(): ?string;
/**
 * Returns the printer's capabilities.
 *
 * @return array
 */
public function capabilities(): array;
/**
 * Returns the printer's available trays.
 *
 * @return array
 */
public function trays(): array;
/**
 * Returns the printer's current status.
 *
 * @return string
 */
public function status(): string;
/**
 * Determine if the printer is currently "online".
 *
 * @return bool
 */
public function isOnline(): bool;
/**
 * Returns the jobs for a printer.
 *
 * @return \Illuminate\Support\Collection
 */
public function jobs(): Collection;
/**
 * 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;
Previous
Macros
Caught a mistake? Suggest an edit on GitHub