for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Brendt\Image\Scaler;
use Brendt\Image\Config\DefaultConfigurator;
use Symfony\Component\Filesystem\Filesystem;
abstract class AbstractScaler implements Scaler
{
/**
* @var string
*/
protected $sourcePath = '';
protected $publicPath = '';
* @var boolean
protected $enableCache;
* @var integer
protected $minFileSize;
protected $minWidth;
* @var float
protected $stepModifier;
* @var Filesystem
protected $fs;
* Scaler constructor.
*
* @param DefaultConfigurator $configurator
public function __construct(DefaultConfigurator $configurator) {
$configurator->configureScaler($this);
$this->fs = new Filesystem();
}
* @param mixed $sourcePath
* @return AbstractScaler
public function setSourcePath($sourcePath) {
$this->sourcePath = $sourcePath;
return $this;
* @param mixed $publicPath
public function setPublicPath($publicPath) {
$this->publicPath = $publicPath;
* @param mixed $enableCache
public function setEnableCache($enableCache) {
$this->enableCache = $enableCache;
* @param mixed $minFileSize
public function setMinFileSize($minFileSize) {
$this->minFileSize = $minFileSize;
* @param mixed $minWidth
public function setMinWidth($minWidth) {
$this->minWidth = $minWidth;
* @param mixed $stepModifier
public function setStepModifier($stepModifier) {
$this->stepModifier = $stepModifier;