public function setAllowAspectRatio($x, $y)
    {
        $this->allowAspectRatioX = (int)$x;
        $this->allowAspectRatioY = (int)$y;

        return $this;
    }
public function setAllowAspectRatio($x, $y)
    {
        $this->allowAspectRatioX = (int)$x;
        $this->allowAspectRatioY = (int)$y;

        return $this;
    }
public function setAllowAspectRatio ( $ x , $ y ) { $ this -> allowAspectRatioX = ( int ) $ x ; $ this -> allowAspectRatioY = ( int ) $ y ; return $ this ; }
Set the aspect ratio.
By setting these,
only images with this aspect ratio can be uploaded.
@param int $x
@param int $y
@return ImageUploadValidator
Set the aspect ratio . By setting these only images with this aspect ratio can be uploaded .