wotapi-8.x-1.x-dev/src/ParameterDefinitionInterface.php
src/ParameterDefinitionInterface.php
<?php
namespace Drupal\wotapi;
/**
* Interface to implement a parameter definition.
*/
interface ParameterDefinitionInterface {
/**
* The name of the parameter if the params are by-name, an offset otherwise.
*
* @return string|int
* The ID.
*/
public function getId();
/**
* The description of the parameter for the method.
*
* @return \Drupal\Core\StringTranslation\TranslatableMarkup
* The description.
*/
public function getDescription();
/**
* Whether the parameter is required.
*
* @return bool
* True if this is a required parameter.
*/
public function isRequired();
/**
* Get the parameter factory class.
*
* @return string
* The parameter factory.
*/
public function getFactory();
}
