• File: Html.php
  • Full Path: /home/bravrvjk/itiministry.org/wp-content/plugins/give/src/Framework/FieldsAPI/Html.php
  • Date Modified: 06/09/2023 4:46 AM
  • File size: 592 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Give\Framework\FieldsAPI;

/**
 * @since 2.12.2
 */
class Html extends Element
{
    const TYPE = 'html';

    /** @var string */
    protected $html = '';

    /**
     * Set the HTML for the element.
     *
     * @since 2.28.0 added types
     * @since 2.12.2
     */
    public function html(string $html): self
    {
        $this->html = $html;

        return $this;
    }

    /**
     * Get the HTML for the element.
     *
     * @since 2.28.0 added types
     * @since 2.12.2
     */
    public function getHtml(): string
    {
        return $this->html;
    }
}