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 / CustomerImport / Model / Profile /
Filename/home/dev2.destoffenstraat.com/app/code/Amasty/CustomerImport/Model/Profile/Profile.php
Size3.85 kb
Permissionrw-r--r--
Ownerroot : root
Create time17-Aug-2025 10:26
Last modified14-Jun-2025 23:39
Last accessed22-Aug-2025 21:46
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

declare(strict_types=1);

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

namespace Amasty\CustomerImport\Model\Profile;

use Amasty\CronSchedule\Api\Data\ScheduleInterface;
use Amasty\ImportCore\Api\Config\ProfileConfigInterface;
use Amasty\CustomerImport\Api\Data\ProfileInterface;
use Magento\Framework\Model\AbstractModel;

class Profile extends AbstractModel implements ProfileInterface
{
public const ID = 'id';
public const NAME = 'name';
public const CREATED_AT = 'created_at';
public const UPDATED_AT = 'updated_at';
public const IMPORTED_AT = 'imported_at';
public const SERIALIZED_CONFIG = 'serialized_config';
public const CONFIG = 'config';
public const SOURCE_TYPE = 'source_type';
public const EXECUTION_TYPE = 'execution_type';
public const SCHEDULE = 'schedule';
public const CUSTOMER_ACTIONS = 'customer_actions';
public const PROFILE_EVENT = 'profile_event';

public function _construct()
{
parent::_construct();
$this->_init(ResourceModel\Profile::class);
$this->setIdFieldName(self::ID);
}

public function getName(): ?string
{
return $this->getData(self::NAME);
}

public function setName(?string $name): ProfileInterface
{
$this->setData(self::NAME, $name);

return $this;
}

public function getCreatedAt(): ?string
{
return $this->getData(self::CREATED_AT);
}

public function setCreatedAt(?string $createdAt): ProfileInterface
{
$this->setData(self::CREATED_AT, $createdAt);

return $this;
}

public function getImportedAt(): ?string
{
return $this->getData(self::IMPORTED_AT);
}

public function setImportedAt(?string $importedAt): ProfileInterface
{
$this->setData(self::IMPORTED_AT, $importedAt);

return $this;
}

public function getUpdatedAt(): ?string
{
return $this->getData(self::UPDATED_AT);
}

public function setUpdatedAt(?string $updatedAt): ProfileInterface
{
$this->setData(self::UPDATED_AT, $updatedAt);

return $this;
}

public function getSerializedConfig(): ?string
{
return $this->getData(self::SERIALIZED_CONFIG);
}

public function setSerializedConfig(?string $serializedConfig): ProfileInterface
{
$this->setData(self::SERIALIZED_CONFIG, $serializedConfig);

return $this;
}

public function getConfig(): ?ProfileConfigInterface
{
return $this->getData(self::CONFIG);
}

public function setConfig(?ProfileConfigInterface $config): ProfileInterface
{
$this->setData(self::CONFIG, $config);

return $this;
}

public function getSourceType(): ?string
{
return $this->getData(self::SOURCE_TYPE);
}

public function setSourceType(?string $type): ProfileInterface
{
$this->setData(self::SOURCE_TYPE, $type);

return $this;
}

public function getExecutionType(): ?string
{
return $this->getData(self::EXECUTION_TYPE);
}

public function setExecutionType(?string $executionType): ProfileInterface
{
$this->setData(self::EXECUTION_TYPE, $executionType);

return $this;
}

public function getCustomerActions(): ?array
{
return (array)$this->getData(self::CUSTOMER_ACTIONS);
}

public function setCustomerActions(?array $actions): ProfileInterface
{
$this->setData(self::CUSTOMER_ACTIONS, $actions);

return $this;
}

public function getSchedule(): ?ScheduleInterface
{
return $this->getData(self::SCHEDULE);
}

public function setSchedule(?ScheduleInterface $schedule): ProfileInterface
{
$this->setData(self::SCHEDULE, $schedule);

return $this;
}
}