mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
git-subtree-dir: public/legacy git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
47 lines
934 B
PHP
47 lines
934 B
PHP
<?php
|
|
namespace Api\V8\Param;
|
|
|
|
use Api\V8\Param\Options as ParamOption;
|
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
|
|
|
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,
|
|
]
|
|
);
|
|
}
|
|
}
|