Neos\Flow\Tests\Functional\Persistence\Fixtures\TestValueObjectWithConstructorLogic::__construct PHP Method

__construct() public method

public __construct ( string $value1, string $value2 )
$value1 string
$value2 string
    public function __construct($value1, $value2)
    {
        $this->value1 = trim($value1);
        $this->value2 = trim($value2);
        if (strlen($value1) > 5) {
            $this->calculatedValue = 100;
        } else {
            $this->calculatedValue = 50;
        }
    }
TestValueObjectWithConstructorLogic