HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/public_html/printmanager/vendor/filament/actions/src/Concerns/HasArguments.php
<?php

namespace Filament\Actions\Concerns;

trait HasArguments
{
    /**
     * @var array<string, mixed> | null
     */
    protected ?array $arguments = null;

    /**
     * @param  array<string, mixed> | null  $arguments
     */
    public function arguments(?array $arguments): static
    {
        if ($arguments === null) {
            $this->arguments = null;

            return $this;
        }

        $this->arguments = [];
        $this->mergeArguments($arguments);

        return $this;
    }

    /**
     * @param  array<string, mixed>  $arguments
     */
    public function mergeArguments(array $arguments): static
    {
        $this->arguments = [
            ...$this->arguments ?? [],
            ...$arguments,
        ];

        return $this;
    }

    /**
     * @return array<string, mixed>
     */
    public function getArguments(): array
    {
        return $this->arguments ?? [];
    }

    public function resetArguments(): static
    {
        $this->arguments(null);

        return $this;
    }

    public function hasArguments(): bool
    {
        return $this->arguments !== null;
    }
}