/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Image/ImagePipeline.php
47 строк
1023 B
nuno maduro
[13.x] Adds first-party support for `image` processing (#59276)
08 июл 2026, 02:44
Не верифицирован
08 июл 2026, 02:44
3dd4830
Код
Авторство
О чём код?
<?php namespace Illuminate\Image; use Illuminate\Contracts\Image\Transformation; class ImagePipeline { /** * The ordered image transformations. * * @var array<int, \Illuminate\Contracts\Image\Transformation> */ 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; } }