[11/06/2024] Les premières modifs + installation de quelques modules indispensables

This commit is contained in:
2024-06-11 14:57:59 +02:00
parent 5ac5653ae5
commit 77cf2c7cc6
1626 changed files with 171457 additions and 131 deletions

View File

@@ -0,0 +1,101 @@
<?php
namespace OpenApi\Events;
use OpenApi\Model\Api\BaseApiModel;
use Thelia\Core\Event\ActionEvent;
class ModelExtendDataEvent extends ActionEvent
{
const ADD_EXTEND_DATA_PREFIX = 'add_extend_data_';
protected $data;
protected $locale;
/** @var BaseApiModel */
protected $model;
protected $extendedData;
/**
* @return mixed
*/
public function getData()
{
return $this->data;
}
/**
* @param mixed $data
*
* @return ModelExtendDataEvent
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
/**
* @return mixed
*/
public function getLocale()
{
return $this->locale;
}
/**
* @param mixed $locale
*
* @return ModelExtendDataEvent
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* @return BaseApiModel
*/
public function getModel()
{
return $this->model;
}
/**
* @param BaseApiModel $model
*
* @return ModelExtendDataEvent
*/
public function setModel($model)
{
$this->model = $model;
return $this;
}
/**
* @return mixed
*/
public function getExtendData()
{
return $this->extendedData;
}
/**
* @param $key
* @param $value
*
* @return $this
*/
public function setExtendDataKeyValue($key, $value)
{
$this->extendedData[$key] = $value;
return $this;
}
}