🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 ModifierStack.php

📁 Path: /home/skhata/chandrasons.com/vendor/intervention/image/src/ModifierStack.php
📊 Size: 934 B
🔒 Perm: 0644
📝 MIME: text/x-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;
    }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨