rendered paste body<?phpclass Timoulator { //tim_grey_flip.png const DIR = '/Users/andrew/Sites/timwouldlickit/images/'; const IMG = 'tim'; const FLIP = '_flip'; const GREY = '_grey'; const SATURATED = '_saturated'; const EXT = '.png'; private $isFlipped; private $scale; private $saturation; private $result; public function __construct ( $isFlipped = false, $scale = 100, $saturation = 100 ) { $this->isFlipped = $isFlipped; $this->scale = $scale; $this->saturation = $saturation; if ( $isFlipped ) { $src = self::DIR . self::IMG . self::FLIP . self::EXT ; } else { $src = self::DIR . self::IMG . self::EXT ; } $this->result = imagecreatefrompng($src); if ($saturation !== 100) { $this->doSaturation(); } if ($scale !== 100) { $this->doScale(); } } private function doSaturation () { # code... } private function doScale () { # code... } }