PHP Class PHPImageOptim\PHPImageOptim

Show file Open project: bensquire/php-image-optim Class Usage Examples

Protected Properties

Property Type Description
$chainedCommands
$imagePath

Public Methods

Method Description
chainCommand ( $object ) Adds a command to perform optimisation against
optimise ( ) : boolean Starts the optimisation process
setImage ( string $imagePath = '' ) Sets the path of the image we want to minify

Method Details

chainCommand() public method

Adds a command to perform optimisation against
public chainCommand ( $object )
$object

optimise() public method

Starts the optimisation process
public optimise ( ) : boolean
return boolean

setImage() public method

Sets the path of the image we want to minify
public setImage ( string $imagePath = '' )
$imagePath string

Property Details

$chainedCommands protected property

protected $chainedCommands

$imagePath protected property

protected $imagePath