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/app/code/Ecombricks/InventoryCommon/Model/SourceItem/Option/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/old/app/code/Ecombricks/InventoryCommon/Model/SourceItem/Option/Meta.php
<?php
/**
 * Copyright © eComBricks. All rights reserved.
 * See LICENSE.txt for license details.
 */
declare(strict_types=1);

namespace Ecombricks\InventoryCommon\Model\SourceItem\Option;

/**
 * Source item option meta
 */
class Meta
{
    /**
     * Name
     * 
     * @var string
     */
    private $name;

    /**
     * Label
     * 
     * @var \Magento\Framework\Phrase
     */
    private $label;

    /**
     * Table name
     * 
     * @var string
     */
    private $tableName;
    
    /**
     * Back-end type
     * 
     * @var string
     */
    private $backendType;
    
    /**
     * Front-end input
     * 
     * @var string
     */
    private $frontendInput;
    
    /**
     * Source model
     * 
     * @var string
     */
    private $sourceModel;

    /**
     * Constructor
     * 
     * @param string $name
     * @param string $label
     * @param string $tableName
     * @param string|null $frontendInput
     * @param string|null $sourceModel
     * @return void
     */
    public function __construct(
        string $name,
        string $label,
        string $tableName,
        string $backendType,
        string $frontendInput = null,
        string $sourceModel = null
    )
    {
        $this->name = $name;
        $this->label = __($label);
        $this->tableName = $tableName;
        $this->backendType = $backendType;
        $this->frontendInput = $frontendInput;
        $this->sourceModel = $sourceModel;
    }
    
    /**
     * Get name
     * 
     * @return string
     */
    public function getName(): string
    {
        return $this->name;
    }
    
    /**
     * Get label
     * 
     * @return string
     */
    public function getLabel(): \Magento\Framework\Phrase
    {
        return $this->label;
    }
    
    /**
     * Get table name
     * 
     * @return string
     */
    public function getTableName(): string
    {
        return $this->tableName;
    }
    
    /**
     * Get back-end type
     * 
     * @return string
     */
    public function getBackendType(): string
    {
        return $this->backendType;
    }
    
    /**
     * Get front-end input
     * 
     * @return string|null
     */
    public function getFrontendInput(): ?string
    {
        return $this->frontendInput;
    }

    /**
     * Get source model
     * 
     * @return string|null
     */
    public function getSourceModel(): ?string
    {
        return $this->sourceModel;
    }
}

Spamworldpro Mini