N°4756 - Ease extensibility for CRUD operations : Event Service - Moved Events source code under sources/application/events

This commit is contained in:
Eric Espie
2022-12-16 11:28:52 +01:00
parent fae857175b
commit 1b4a21fafa
7 changed files with 20 additions and 20 deletions

View File

@@ -0,0 +1,84 @@
<?php
/*
* @copyright Copyright (C) 2010-2022 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
namespace Combodo\iTop\Service\Events\Description;
/**
* Description of the data given with an event when registering
*
* @api
* @package EventsAPI
* @since 3.1.0
*/
class EventDataDescription
{
private string $sName;
private string $sDescription;
private string $sType;
/**
* Create a data description
*
* @api
* @param string $sName Name of the parameter
* @param string $sDescription Description of the parameter
* @param string $sType Type of the parameter
*/
public function __construct(string $sName, string $sDescription, string $sType)
{
$this->sName = $sName;
$this->sDescription = $sDescription;
$this->sType = $sType;
}
/**
* @return string
*/
public function GetName(): string
{
return $this->sName;
}
/**
* @param string $sName
*/
public function SetName(string $sName): void
{
$this->sName = $sName;
}
/**
* @return string
*/
public function GetDescription(): string
{
return $this->sDescription;
}
/**
* @param string $sDescription
*/
public function SetDescription(string $sDescription): void
{
$this->sDescription = $sDescription;
}
/**
* @return string
*/
public function GetType(): string
{
return $this->sType;
}
/**
* @param string $sType
*/
public function SetType(string $sType): void
{
$this->sType = $sType;
}
}