thrownewInvalidArgumentException("It looks like you are trying to build a GeneratedValueSingle whose value is another GeneratedValueSingle. This is almost always an error as values will be passed as-is to properties and GeneratedValueSingle should be hidden from them.");
}
$this->value=$value;
$this->input=$input;
$this->generatorName=$generatorName;
$this->annotations=$annotations;
}
/**
* @return GeneratedValueSingle|mixed
*/
publicfunctioninput()
{
return$this->input;
}
/**
* @psalm-return T
* @return mixed
*/
publicfunctionunbox()
{
return$this->value;
}
publicfunction__toString()
{
returnvar_export($this,true);
}
/**
* @return string
*/
publicfunctiongeneratorName()
{
return$this->generatorName;
}
/**
* Produces a new GeneratedValueSingle that wraps this one,
* and that is labelled with $generatorName.
* $applyToValue is mapped over the value
* to build the outer GeneratedValueSingle object $this->value field.
thrownewInvalidArgumentException("Trying to merge a {$this->generatorName} GeneratedValueSingle with a {$another->generatorName} GeneratedValueSingle");