Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Image/ImagePipeline.php
Строк: 59
<?php

namespace IlluminateImage;

use 
IlluminateContractsImageTransformation;

class 
ImagePipeline
{
    
/**
     * The ordered image transformations.
     *
     * @var array<int, IlluminateContractsImageTransformation>
     */
    
public array $transformations = [];

    
/**
     * Create a new image pipeline instance.
     */
    
public function __construct(public ImageOutputOptions $output = new ImageOutputOptions)
    {
        
//
    
}

    
/**
     * Add a transformation to the pipeline.
     */
    
public function add(Transformation $transformation): void
    
{
        
$this->transformations[] = $transformation;
    }

    
/**
     * Determine if the pipeline has transformations or output changes.
     */
    
public function hasChanges(): bool
    
{
        return 
$this->transformations !== [] || $this->output->hasChanges();
    }

    
/**
     * Clone the output options with the pipeline.
     */
    
public function __clone(): void
    
{
        
$this->output = clone $this->output;
    }
}
Онлайн: 2
Реклама