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/cartforge.co/app/code/Amasty/Label/Model/Label/Parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/app/code/Amasty/Label/Model/Label/Parts/FrontendSettings.php
<?php

declare(strict_types=1);

/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Product Labels for Magento 2
 */

namespace Amasty\Label\Model\Label\Parts;

use Amasty\Label\Api\Data\LabelFrontendSettingsInterface;
use Amasty\Label\Model\ResourceModel\Label\Collection;
use Magento\Framework\Model\AbstractExtensibleModel;

class FrontendSettings extends AbstractExtensibleModel implements LabelFrontendSettingsInterface
{
    public function getType(): int
    {
        $type = (int) $this->getData(self::TYPE);

        return $type === Collection::MODE_LIST ? $type : Collection::MODE_PDP;
    }

    public function setType(int $type): void
    {
        $this->setData(self::TYPE, $type);
    }

    public function getLabelText(): string
    {
        return (string) $this->_getData(self::LABEL_TEXT);
    }

    public function setLabelText(string $labelText): void
    {
        $this->setData(self::LABEL_TEXT, $labelText);
    }

    public function getImage(): ?string
    {
        $image = $this->_getData(self::IMAGE);

        return is_string($image) ? $image : null;
    }

    public function setImage(?string $image): void
    {
        $this->setData(self::IMAGE, $image);
    }

    public function getImageSize(): ?string
    {
        $imageSize = $this->_getData(self::IMAGE_SIZE);

        return is_string($imageSize) ? $imageSize : null;
    }

    public function setImageSize(?string $imageSize): void
    {
        $this->setData(self::IMAGE_SIZE, $imageSize);
    }

    public function getPosition(): int
    {
        return (int) $this->_getData(self::POSITION);
    }

    public function setPosition(int $imagePosition): void
    {
        $this->setData(self::POSITION, $imagePosition);
    }

    public function getStyle(): ?string
    {
        $style = $this->_getData(self::STYLE);

        return is_string($style) ? $style : null;
    }

    public function setStyle(?string $style): void
    {
        $this->setData(self::STYLE, $style);
    }

    public function getAltTag(): string
    {
        return (string) $this->_getData(self::ALT_TAG);
    }

    public function setAltTag(string $altTag): void
    {
        $this->setData(self::ALT_TAG, $altTag);
    }

    public function getRedirectUrl(): string
    {
        return (string) $this->_getData(self::REDIRECT_URL);
    }

    public function setRedirectUrl(string $redirectUrl): void
    {
        $this->setData(self::REDIRECT_URL, $redirectUrl);
    }
}

Spamworldpro Mini