:octocat:

This commit is contained in:
smiley
2015-12-01 17:55:20 +01:00
commit b8606b24da
21 changed files with 2314 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
/**
*
* @filesource QRDataInterface.php
* @created 01.12.2015
* @author Smiley <smiley@chillerlan.net>
* @copyright 2015 Smiley
* @license MIT
*/
namespace codemasher\QRCode\Data;
use codemasher\QRCode\BitBuffer;
/**
* Interface QRDataInterface
*/
interface QRDataInterface{
/**
* @param \codemasher\QRCode\BitBuffer $buffer
*/
public function write(BitBuffer &$buffer);
/**
* @return int
*/
public function getLength();
/**
* @return mixed
*/
public function getData();
/**
* @return mixed
*/
public function getMode();
/**
* @param $type
*
* @return int
* @throws \codemasher\QRCode\QRCodeException
*/
public function getLengthInBits($type);
}