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

getValue() public method

Returns the value of this argument. If the value is NULL, we use the defaultValue.
public getValue ( ) : object
return object The value of this argument - if none was set, the default value is returned
    public function getValue()
    {
        return $this->value === null ? $this->defaultValue : $this->value;
    }

Usage Example

Esempio n. 1
0
 /**
  * @test
  */
 public function setValueShouldCallPropertyMapperCorrectlyAndStoreResultInValue()
 {
     $this->setupPropertyMapperAndSetValue();
     $this->assertSame('convertedValue', $this->simpleValueArgument->getValue());
 }