403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.216.156.171
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/task/7779/cwd/plugins/give/src/Framework/FieldsAPI/Exceptions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/task/7779/cwd/plugins/give/src/Framework/FieldsAPI/Exceptions/NameCollisionException.php
<?php

namespace Give\Framework\FieldsAPI\Exceptions;

use Give\Framework\Exceptions\Primitives\Exception;
use Give\Framework\FieldsAPI\Contracts\Node;

/**
 * @since 2.32.0 add existing and incoming nodes to exception
 * @since 2.10.2
 */
class NameCollisionException extends Exception
{
    /**
     * @var string
     */
    protected $nodeNameCollision;
    /**
     * @var Node
     */
    protected $existingNode;
    /**
     * @var Node
     */
    protected $incomingNode;
    
    public function __construct(
        string $name,
        Node $existingNode,
        Node $incomingNode,
        int $code = 0,
        Exception $previous = null
    )
    {
        $this->nodeNameCollision = $name;
        $this->existingNode = $existingNode;
        $this->incomingNode = $incomingNode;

        $message = "Node name collision for $name";
        parent::__construct($message, $code, $previous);
    }

    /**
     * @since 2.32.0
     */
    public function getNodeNameCollision(): string
    {
        return $this->nodeNameCollision;
    }

    /**
     * @since 2.32.0
     */
    public function getIncomingNode(): Node
    {
        return $this->incomingNode;
    }

    /**
     * @since 2.32.0
     */
    public function getExistingNode(): Node
    {
        return $this->existingNode;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit