Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/framework/View/Helper/SecureHtmlRender/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/framework/View/Helper/SecureHtmlRender/TagData.php
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Framework\View\Helper\SecureHtmlRender;

/**
 * Tag data to render.
 *
 * @api
 */
class TagData
{
    /**
     * @var string
     */
    private $tag;

    /**
     * @var string[]
     */
    private $attributes;

    /**
     * @var string|null
     */
    private $content;

    /**
     * @var bool
     */
    private $textContent;

    /**
     * @param string $tag
     * @param string[] $attributes
     * @param string|null $content
     * @param bool $textContent
     */
    public function __construct(string $tag, array $attributes, ?string $content, bool $textContent)
    {
        $this->tag = $tag;
        $this->attributes = $attributes;
        $this->content = $content;
        $this->textContent = $textContent;
    }

    /**
     * Tag name (like "style", "script" etc)
     *
     * @return string
     */
    public function getTag(): string
    {
        return $this->tag;
    }

    /**
     * Attributes list, not escaped.
     *
     * @return string[]
     */
    public function getAttributes(): array
    {
        return $this->attributes;
    }

    /**
     * Text or HTML inner content.
     *
     * @return string|null
     */
    public function getContent(): ?string
    {
        return $this->content;
    }

    /**
     * Is the content to be treated as text or HTML?
     *
     * @return bool
     */
    public function isTextContent(): bool
    {
        return $this->textContent;
    }
}

Spamworldpro Mini