🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home2
/
birthday
/
event.krishivgroups.in
/
vendor
/
intervention
/
image
/
src
✏️
Editing: ModifierStack.php
<?php declare(strict_types=1); namespace Intervention\Image; use Intervention\Image\Interfaces\ImageInterface; use Intervention\Image\Interfaces\ModifierInterface; class ModifierStack implements ModifierInterface { /** * Create new modifier stack object with an array of modifier objects * * @param array<ModifierInterface> $modifiers * @return void */ public function __construct(protected array $modifiers) { // } /** * Apply all modifiers in stack to the given image */ public function apply(ImageInterface $image): ImageInterface { foreach ($this->modifiers as $modifier) { $modifier->apply($image); } return $image; } /** * Append new modifier to the stack */ public function push(ModifierInterface $modifier): self { $this->modifiers[] = $modifier; return $this; } }
💾 Save Changes
❌ Cancel