'Portrait', self::LANDSCAPE => 'Landscape', self::SQUARE => 'Square' }; } /** * Check if orientation is wider than tall */ public function isWide(): bool { return $this === self::LANDSCAPE; } /** * Check if orientation is taller than wide */ public function isTall(): bool { return $this === self::PORTRAIT; } /** * Check if orientation is equal width and height */ public function isEqual(): bool { return $this === self::SQUARE; } }