b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / dev2.destoffenstraat.com / app / code / Amasty / Checkout / Model /
Filename/home/dev2.destoffenstraat.com/app/code/Amasty/Checkout/Model/Placeholder.php
Size2.12 kb
Permissionrwxrwxrwx
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified23-Nov-2022 12:33
Last accessed21-Aug-2025 22:24
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

declare(strict_types=1);

/**
* @author Amasty Team
* @copyright Copyright (c) 2022 Amasty (https://www.amasty.com)
* @package One Step Checkout for Magento 2
*/

namespace Amasty\Checkout\Model;

use Amasty\Checkout\Api\Data\PlaceholderInterface;
use Amasty\Checkout\Model\ResourceModel\Placeholder as ResourcePlaceholder;
use Magento\Framework\Model\AbstractModel;

class Placeholder extends AbstractModel implements PlaceholderInterface
{
protected function _construct()
{
$this->_init(ResourcePlaceholder::class);
}

/**
* @return int
*/
public function getPlaceholderId(): int
{
return (int)$this->getData(self::PLACEHOLDER_ID);
}

/**
* @param int $placeholderId
*
* @return PlaceholderInterface
*/
public function setPlaceholderId(int $placeholderId): PlaceholderInterface
{
$this->setData(self::PLACEHOLDER_ID, $placeholderId);

return $this;
}

/**
* @return int
*/
public function getStoreId(): int
{
return (int)$this->getData(self::STORE_ID);
}

/**
* @param int $storeId
*
* @return PlaceholderInterface
*/
public function setStoreId(int $storeId): PlaceholderInterface
{
$this->setData(self::STORE_ID, $storeId);

return $this;
}

/**
* @return string|null
*/
public function getPlaceholder(): ?string
{
return $this->getData(self::PLACEHOLDER);
}

/**
* @param string $placeholder
*
* @return PlaceholderInterface
*/
public function setPlaceholder(string $placeholder): PlaceholderInterface
{
$this->setData(self::PLACEHOLDER, $placeholder);

return $this;
}

/**
* @return int
*/
public function getAttributeId(): int
{
return (int)$this->getData(self::ATTRIBUTE_ID);
}

/**
* @param int $attributeId
*
* @return PlaceholderInterface
*/
public function setAttributeId(int $attributeId): PlaceholderInterface
{
$this->setData(self::ATTRIBUTE_ID, $attributeId);

return $this;
}
}