Neos\Flow\Mvc\Controller\Arguments::getArgument PHP Метод

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

Returns an argument specified by name
public getArgument ( string $argumentName ) : Argument
$argumentName string Name of the argument to retrieve
Результат Argument
    public function getArgument($argumentName)
    {
        return $this->offsetGet($argumentName);
    }

Usage Example

 /**
  * @test
  */
 public function getArgumentWithNonExistingArgumentNameThrowsException()
 {
     $arguments = new Arguments();
     try {
         $arguments->getArgument('someArgument');
         $this->fail('getArgument() did not throw an exception although the specified argument does not exist.');
     } catch (NoSuchArgumentException $exception) {
         $this->assertTrue(true);
     }
 }
All Usage Examples Of Neos\Flow\Mvc\Controller\Arguments::getArgument