final class AspectRatio (View source)

Constants

ORIENTATION_LANDSCAPE

ORIENTATION_PORTRAIT

ORIENTATION_SQUARE

Methods

__construct(int $width, int $height)

No description

static AspectRatio
fromString(string $ratio)

No description

int
getWidth()

No description

int
getHeight()

No description

float
getRatio()

No description

string
getOrientation()

No description

bool
isOrientationLandscape()

No description

bool
isOrientationPortrait()

No description

bool
isOrientationSquare()

No description

string
__toString()

No description

Details

__construct(int $width, int $height)

No description

Parameters

int $width
int $height

static AspectRatio fromString(string $ratio)

No description

Parameters

string $ratio

Return Value

AspectRatio

int getWidth()

No description

Return Value

int

int getHeight()

No description

Return Value

int

float getRatio()

No description

Return Value

float

string getOrientation()

No description

Return Value

string

bool isOrientationLandscape()

No description

Return Value

bool

bool isOrientationPortrait()

No description

Return Value

bool

bool isOrientationSquare()

No description

Return Value

bool

string __toString()

No description

Return Value

string