mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-11-24 00:29:35 +00:00
49 lines
961 B
PHP
49 lines
961 B
PHP
<?php
|
|
namespace Api\V8\Param;
|
|
|
|
use Api\V8\Param\Options as ParamOption;
|
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
|
|
|
#[\AllowDynamicProperties]
|
|
class UpdateModuleDataParams extends BaseParam
|
|
{
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->parameters['type'];
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->parameters['id'];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getAttributes()
|
|
{
|
|
return isset($this->parameters['attributes']) ? $this->parameters['attributes'] : [];
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
protected function configureParameters(OptionsResolver $resolver)
|
|
{
|
|
$this->setOptions(
|
|
$resolver,
|
|
[
|
|
ParamOption\Type::class,
|
|
ParamOption\Id::class,
|
|
ParamOption\Attributes::class,
|
|
]
|
|
);
|
|
}
|
|
}
|