src/Thumbnail.php
private static function getImageFlag(array $flags): int
    {
        $res = 0;
        foreach ($flags as $flag) {
            $res |= constant(Image::class . '::' . $flag);
        }
        return $res;
    }
private static function getImageFlag(array $flags): int
    {
        $res = 0;
        foreach ($flags as $flag) {
            $res |= constant(Image::class . '::' . $flag);
        }
        return $res;
    }
private static function getImageFlag ( array $ flags ) : int { $ res = 0 ; foreach ( $ flags as $ flag ) { $ res |= constant ( Image :: class . '::' . $ flag ) ; } return $ res ; }
Get image flag.

@param array $flags
@return int
Get image flag .