PHP Class Zebra\Zpl\Builder

Show file Open project: robgridley/zebra

Protected Properties

Property Type Description
$zpl array ZPL commands.

Public Methods

Method Description
__call ( string $method, array $arguments ) : self Handle dynamic method calls.
__toString ( ) : string Convert instance to string.
command ( ) : self Add a command.
gf ( ) : self Add GF command.
start ( ) : self Create a new instance statically.
toZpl ( ) : string Convert instance to ZPL.

Protected Methods

Method Description
parameter ( mixed $parameter ) : mixed Convert native types to their ZPL representations.

Method Details

__call() public method

Handle dynamic method calls.
public __call ( string $method, array $arguments ) : self
$method string
$arguments array
return self

__toString() public method

Convert instance to string.
public __toString ( ) : string
return string

command() public method

Add a command.
public command ( ) : self
return self

gf() public method

Add GF command.
public gf ( ) : self
return self

parameter() protected method

Convert native types to their ZPL representations.
protected parameter ( mixed $parameter ) : mixed
$parameter mixed
return mixed

start() public static method

Create a new instance statically.
public static start ( ) : self
return self

toZpl() public method

Convert instance to ZPL.
public toZpl ( ) : string
return string

Property Details

$zpl protected property

ZPL commands.
protected array $zpl
return array