name : HasTypeAttribute.php
<?php

declare(strict_types=1);

namespace Arcanedev\Html\Elements\Concerns;

/**
 * Trait     HasTypeAttribute
 *
 * @author   ARCANEDEV <arcanedev.maroc@gmail.com>
 *
 * @mixin \Arcanedev\Html\Elements\Concerns\HasAttributes
 */
trait HasTypeAttribute
{
    /* -----------------------------------------------------------------
     |  Main Methods
     | -----------------------------------------------------------------
     */

    /**
     * Add the type attribute.
     *
     * @param  string  $type
     *
     * @return static
     */
    public function type(string $type)
    {
        return $this->attribute('type', $type);
    }
}

© 2025 UnknownSec
afwwrfwafr45458465
Password