size = $size; } /** * Returns current size of constraint * * @return \Intervention\Image\Size */ public function getSize() { return $this->size; } /** * Fix the given argument in current constraint * * @param integer $type * @return void */ public function fix($type) { $this->fixed = ($this->fixed & ~(1 << $type)) | (1 << $type); } /** * Checks if given argument is fixed in current constraint * * @param integer $type * @return boolean */ public function isFixed($type) { return (bool) ($this->fixed & (1 << $type)); } /** * Fixes aspect ratio in current constraint * * @return void */ public function aspectRatio() { $this->fix(self::ASPECTRATIO); } /** * Fixes possibility to size up in current constraint * * @return void */ public function upsize() { $this->fix(self::UPSIZE); } }