getWidth()){ return $this; } return parent::SetWidth($width); } public function SetHeight($height) { if($height == $this->getHeight()){ return $this; } return parent::ScaleHeight($height); } public function SetSize($width, $height) { if($width == $this->getWidth() && $height == $this->getHeight()){ return $this; } return parent::Pad($width, $height); } public function SetRatioSize($width, $height) { if($width == $this->getWidth() && $height == $this->getHeight()){ return $this; } return parent::Fit($width, $height); } }