Вход Регистрация
Файл: vendor/intervention/image/src/Modifiers/RotateModifier.php
Строк: 24
<?php

declare(strict_types=1);

namespace 
InterventionImageModifiers;

use 
InterventionImageDriversSpecializableModifier;

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->angle360);
    }
}
Онлайн: 1
Реклама