Skip to content

Commit

Permalink
Merge pull request #26 from samuelszabo/feature/zplLabel
Browse files Browse the repository at this point in the history
PPL Zpl labels support
  • Loading branch information
Salamek authored Dec 2, 2017
2 parents eecb646 + 2ec9890 commit f2e8521
Show file tree
Hide file tree
Showing 10 changed files with 630 additions and 328 deletions.
13 changes: 13 additions & 0 deletions src/Exception/NotImplementedException.php
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
{

}
41 changes: 41 additions & 0 deletions src/ILabel.php
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);

}
Loading

0 comments on commit f2e8521

Please sign in to comment.