Neos\Flow\Mvc\Controller\Argument::setDefaultValue PHP Method

setDefaultValue() public method

Sets the default value of the argument
public setDefaultValue ( mixed $defaultValue ) : Argument
$defaultValue mixed Default value
return Argument $this
    public function setDefaultValue($defaultValue)
    {
        $this->defaultValue = $defaultValue;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @test
  */
 public function setDefaultValueShouldProvideFluentInterfaceAndReallySetDefaultValue()
 {
     $returnedArgument = $this->simpleValueArgument->setDefaultValue('default');
     $this->assertSame($this->simpleValueArgument, $returnedArgument, 'The returned argument is not the original argument.');
     $this->assertSame('default', $this->simpleValueArgument->getDefaultValue());
 }
All Usage Examples Of Neos\Flow\Mvc\Controller\Argument::setDefaultValue