🚀 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
$

📄 ViewEditor.php

📁 Path: /home/skhata/chandrasons.com/vendor/doctrine/dbal/src/Schema/ViewEditor.php
📊 Size: 1.64 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Schema;

use Doctrine\DBAL\Schema\Exception\InvalidViewDefinition;
use Doctrine\DBAL\Schema\Name\OptionallyQualifiedName;

final class ViewEditor
{
    private ?OptionallyQualifiedName $name = null;

    private ?string $sql = null;

    /** @internal Use {@link View::editor()} or {@link View::edit()} to create an instance */
    public function __construct()
    {
    }

    public function setName(OptionallyQualifiedName $name): self
    {
        $this->name = $name;

        return $this;
    }

    /**
     * @param non-empty-string  $unqualifiedName
     * @param ?non-empty-string $qualifier
     */
    public function setUnquotedName(string $unqualifiedName, ?string $qualifier = null): self
    {
        $this->name = OptionallyQualifiedName::unquoted($unqualifiedName, $qualifier);

        return $this;
    }

    /**
     * @param non-empty-string  $unqualifiedName
     * @param ?non-empty-string $qualifier
     */
    public function setQuotedName(string $unqualifiedName, ?string $qualifier = null): self
    {
        $this->name = OptionallyQualifiedName::quoted($unqualifiedName, $qualifier);

        return $this;
    }

    public function setSQL(string $sql): self
    {
        $this->sql = $sql;

        return $this;
    }

    public function create(): View
    {
        if ($this->name === null) {
            throw InvalidViewDefinition::nameNotSet();
        }

        if ($this->sql === null) {
            throw InvalidViewDefinition::sqlNotSet($this->name);
        }

        return new View(
            $this->name->toString(),
            $this->sql,
        );
    }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨