403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.14.135.79
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/QueryBuilder/Clauses/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/task/7779/cwd/plugins/give/src/Framework/QueryBuilder/Clauses/JoinCondition.php
<?php

namespace Give\Framework\QueryBuilder\Clauses;

use Give\Framework\QueryBuilder\Types\Operator;
use InvalidArgumentException;

/**
 * @since 2.19.0
 */
class JoinCondition
{
    /**
     * @var string
     */
    public $logicalOperator;

    /**
     * @var string
     */
    public $column1;

    /**
     * @var mixed
     */
    public $column2;

    /**
     * @var bool
     */
    public $quote;


    /**
     * @param  string  $logicalOperator
     * @param  string  $column1
     * @param  string  $column2
     * @param  bool  $quote
     */
    public function __construct($logicalOperator, $column1, $column2, $quote = false)
    {
        $this->logicalOperator = $this->getLogicalOperator($logicalOperator);
        $this->column1         = trim($column1);
        $this->column2         = trim($column2);
        $this->quote           = $quote;
    }

    /**
     * @param  string  $operator
     *
     * @return string
     */
    private function getLogicalOperator($operator)
    {
        $operator = strtoupper($operator);

        $supportedOperators = [
            Operator::ON,
            Operator::_AND,
            Operator::_OR
        ];

        if ( ! in_array($operator, $supportedOperators, true)) {
            throw new InvalidArgumentException(
                sprintf(
                    'Unsupported logical operator %s. Please provide one of the supported operators (%s)',
                    $operator,
                    implode(',', $supportedOperators)
                )
            );
        }

        return $operator;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit