\Intervention\ImageConstraint

Summary

Methods
Properties
Constants
__construct()
getSize()
fix()
isFixed()
aspectRatio()
upsize()
No public properties found
ASPECTRATIO
UPSIZE
No protected methods found
No protected properties found
N/A
No private methods found
$size
$fixed
N/A

Constants

ASPECTRATIO

ASPECTRATIO = 1

Bit value of aspect ratio constraint

UPSIZE

UPSIZE = 2

Bit value of upsize constraint

Properties

$size

$size : \Intervention\Image\Size

Constraint size

Type

Size

$fixed

$fixed : int

Integer value of fixed parameters

Type

int

Methods

__construct()

__construct(\Intervention\Image\Size  $size) : mixed

Create a new constraint based on size

Parameters

\Intervention\Image\Size $size

Returns

mixed —

getSize()

getSize() : \Intervention\Image\Size

Returns current size of constraint

Returns

\Intervention\Image\Size —

fix()

fix(int  $type) : void

Fix the given argument in current constraint

Parameters

int $type

isFixed()

isFixed(int  $type) : bool

Checks if given argument is fixed in current constraint

Parameters

int $type

Returns

bool —

aspectRatio()

aspectRatio() : void

Fixes aspect ratio in current constraint

upsize()

upsize() : void

Fixes possibility to size up in current constraint