If an argument with the same name exists already, it will be replaced by the
new argument object.
public addNewArgument ( string $name, string $dataType = 'string', boolean $isRequired = true, mixed $defaultValue = null ) : |
||
$name | string | Name of the argument |
$dataType | string | Name of one of the built-in data types |
$isRequired | boolean | TRUE if this argument should be marked as required |
$defaultValue | mixed | Default value of the argument. Only makes sense if $isRequired==FALSE |
Результат | The new argument |