HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bdedition/public_html/core/vendor/intervention/image/src/Modifiers/RotateModifier.php
<?php

declare(strict_types=1);

namespace Intervention\Image\Modifiers;

use Intervention\Image\Drivers\SpecializableModifier;

class RotateModifier extends SpecializableModifier
{
    public function __construct(public float $angle, public mixed $background)
    {
    }

    /**
     * Restrict rotations beyond 360 degrees
     * because the end result is the same
     *
     * @return float
     */
    public function rotationAngle(): float
    {
        return fmod($this->angle, 360);
    }
}