FluidTYPO3\Vhs\ViewHelpers\Math\AbstractSingleMathViewHelper::initializeArguments PHP Метод

initializeArguments() публичный Метод

public initializeArguments ( ) : void
Результат void
    public function initializeArguments()
    {
        $this->registerArgument('a', 'mixed', 'First number for calculation');
        $this->registerArgument('fail', 'boolean', 'If TRUE, throws an Exception if argument "a" is not specified and no child content or inline argument ' . 'is found. Usually okay to use a NULL value (as integer zero).', false, false);
    }

Usage Example

 /**
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('b', 'mixed', 'Second number or Iterator/Traversable/Array for calculation', true);
 }