class FitCommand extends AbstractCommand implements CommandInterface

crop & resize 를 수행하는 command

Properties

protected Dimension $dimension Dimension interface from AbstractCommand
protected Dimension $originDimension Origin dimension from AbstractCommand
protected string $position fit position(center, left and right)

Methods

void
setDimension(Dimension $dimension)

Set a dimension

void
setOriginDimension(Dimension $dimension)

Set origin dimension

getDimension()

Get a dimension

getOriginDimension()

Get a dimension

string
getName()

Specific command name

string
getMethod()

Executed command method name

array
getExecArgs()

Arguments of executed method

void
setPosition(string $position)

Set fit position

Details

in AbstractCommand at line 51
void setDimension(Dimension $dimension)

Set a dimension

Parameters

Dimension $dimension Dimension interface

Return Value

void

in AbstractCommand at line 62
void setOriginDimension(Dimension $dimension)

Set origin dimension

Parameters

Dimension $dimension dimension instance

Return Value

void

in AbstractCommand at line 72
Dimension getDimension()

Get a dimension

Return Value

Dimension

in AbstractCommand at line 82
Dimension getOriginDimension()

Get a dimension

Return Value

Dimension

at line 41
string getName()

Specific command name

Return Value

string

at line 51
string getMethod()

Executed command method name

Return Value

string

at line 61
array getExecArgs()

Arguments of executed method

Return Value

array

at line 82
void setPosition(string $position)

Set fit position

Parameters

string $position fit position(center, left and right)

Return Value

void