2 namespace TYPO3\CMS\Extbase\Mvc\Controller;
17 use TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException;
119 if (!is_string(
$name)) {
120 throw new \InvalidArgumentException(
'$name must be of type string, ' . gettype(
$name) .
' given.', 1187951688);
123 throw new \InvalidArgumentException(
'$name must be a non-empty string.', 1232551853);
151 throw new \InvalidArgumentException(
'$shortName must be a single character or NULL', 1195824959);
261 if ($rawValue === null) {
265 if (is_object($rawValue) && $rawValue instanceof $this->dataType) {
266 $this->value = $rawValue;
270 $this->value = $this->propertyMapper->convert($rawValue, $this->dataType, $this->propertyMappingConfiguration);
277 $this->validationResults = $this->propertyMapper->getMessages();
278 if ($this->validator !== null) {
280 $validationMessages = $this->validator->validate($this->value);
281 $this->validationResults->merge($validationMessages);
294 if ($this->value === null) {
318 return !$this->validationResults->hasErrors();