final protected function _setProperty(
        $propName,
        $value)
    {
        // Check if the property exists in class/data and get its definition.
        $propDef = $this->_getPropertyDefinition($propName); // Throws.

        // Map the value to the appropriate type and validate it.
        ValueConverter::convert( // Throws.
            ValueConverter::CONVERT_TO_INTERNAL,
            $value, $propDef->arrayDepth, $propName, $propDef
        );

        // Assign the new value for the property.
        $this->_objectData[$propName] = $value;

        return $this;
    }
final protected function _setProperty(
        $propName,
        $value)
    {
        // Check if the property exists in class/data and get its definition.
        $propDef = $this->_getPropertyDefinition($propName); // Throws.

        // Map the value to the appropriate type and validate it.
        ValueConverter::convert( // Throws.
            ValueConverter::CONVERT_TO_INTERNAL,
            $value, $propDef->arrayDepth, $propName, $propDef
        );

        // Assign the new value for the property.
        $this->_objectData[$propName] = $value;

        return $this;
    }
final protected function _setProperty ( $ propName , $ value ) { // Check if the property exists in class/data and get its definition. $ propDef = $ this -> _getPropertyDefinition ( $ propName ) ; // Throws. // Map the value to the appropriate type and validate it. ValueConverter :: convert ( // Throws. ValueConverter :: CONVERT_TO_INTERNAL , $ value , $ propDef -> arrayDepth , $ propName , $ propDef ) ; // Assign the new value for the property. $ this -> _objectData [ $ propName ] = $ value ; return $ this ; }
Set an object data property to a new value.

@param string $propName The property name.
@param mixed  $value    The new value for the property. `NULL` is always
allowed as the new value, regardless of type.

@throws LazyJsonMapperException If the new value isn't legal for that
property, or if the property doesn't
exist in either the class property
definition or the object instance's data.

@return $this The current object instance, to allow chaining setters.
Set an object data property to a new value .