Neos\Flow\Tests\Functional\Persistence\Fixtures\TestValueObjectWithConstructorLogicAndInversedPropertyOrder::__construct PHP Метод

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

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