-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from samuelszabo/feature/zplLabel
PPL Zpl labels support
- Loading branch information
Showing
10 changed files
with
630 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* User: Martinus - Samuel Szabo | ||
* Date: 24.11.2017 | ||
*/ | ||
|
||
namespace Salamek\PplMyApi\Exception; | ||
|
||
|
||
class NotImplementedException extends \BadMethodCallException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* User: Martinus - Samuel Szabo | ||
* Date: 24.11.2017 | ||
*/ | ||
|
||
namespace Salamek\PplMyApi; | ||
|
||
|
||
use Salamek\PplMyApi\Enum\LabelDecomposition; | ||
use Salamek\PplMyApi\Enum\LabelPosition; | ||
use Salamek\PplMyApi\Model\IPackage; | ||
|
||
interface ILabel | ||
{ | ||
|
||
/** | ||
* @param IPackage[] $packages | ||
* @param int $decomposition | ||
* @return string | ||
* @throws \Exception | ||
*/ | ||
public static function generateLabels(array $packages, $decomposition = LabelDecomposition::FULL); | ||
|
||
/** | ||
* @param \TCPDF $pdf | ||
* @param IPackage $package | ||
* @return \TCPDF | ||
*/ | ||
public static function generateLabelFull(\TCPDF $pdf, IPackage $package); | ||
|
||
/** | ||
* @param \TCPDF $pdf | ||
* @param IPackage $package | ||
* @param int $position | ||
* @return \TCPDF | ||
* @throws \Exception | ||
*/ | ||
public static function generateLabelQuarter(\TCPDF $pdf, IPackage $package, $position = LabelPosition::TOP_LEFT); | ||
|
||
} |
Oops, something went wrong.