mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add a BSD licensed QR code library
This commit is contained in:
41
resources/qr_code/QRByte.php
Normal file
41
resources/qr_code/QRByte.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of the phpQr package
|
||||
*
|
||||
* See @see QRCode class for description of package and license.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Import necessary dependencies
|
||||
*/
|
||||
require_once 'QRBitBuffer.php';
|
||||
|
||||
/**
|
||||
* This interface describes a QRByte implementation
|
||||
*
|
||||
* @author Maik Greubel <greubel@nkey.de>
|
||||
* @package phpQr
|
||||
*/
|
||||
interface QRByte
|
||||
{
|
||||
/**
|
||||
* Retrieve the mode
|
||||
*
|
||||
* @return int The mode
|
||||
*/
|
||||
public function getMode();
|
||||
|
||||
/**
|
||||
* Retrieve the length
|
||||
*
|
||||
* @return int The length
|
||||
*/
|
||||
public function getLength();
|
||||
|
||||
/**
|
||||
* Write data to byte
|
||||
*
|
||||
* @param QRBitBuffer $buffer The data to write into byte
|
||||
*/
|
||||
public function write(QRBitBuffer $buffer);
|
||||
}
|
||||
Reference in New Issue
Block a user