public function setToValuePropertyName($toValuePropertyName)
    {
        if (!is_string($toValuePropertyName) || empty($toValuePropertyName)) {
            throw new InvalidArgumentException('"To value property name" argument must be string and must not be empty.');
        }

        if (!property_exists($this, $toValuePropertyName)) {
            throw new InvalidArgumentException(sprintf('Property "%s" does not exist.', $toValuePropertyName));
        }

        $this->toValuePropertyName = $toValuePropertyName;

        return $this;
    }
public function setToValuePropertyName($toValuePropertyName)
    {
        if (!is_string($toValuePropertyName) || empty($toValuePropertyName)) {
            throw new InvalidArgumentException('"To value property name" argument must be string and must not be empty.');
        }

        if (!property_exists($this, $toValuePropertyName)) {
            throw new InvalidArgumentException(sprintf('Property "%s" does not exist.', $toValuePropertyName));
        }

        $this->toValuePropertyName = $toValuePropertyName;

        return $this;
    }
public function setToValuePropertyName ( $ toValuePropertyName ) { if ( ! is_string ( $ toValuePropertyName ) || empty ( $ toValuePropertyName ) ) { throw new InvalidArgumentException ( '"To value property name" argument must be string and must not be empty.' ) ; } if ( ! property_exists ( $ this , $ toValuePropertyName ) ) { throw new InvalidArgumentException ( sprintf ( 'Property "%s" does not exist.' , $ toValuePropertyName ) ) ; } $ this -> toValuePropertyName = $ toValuePropertyName ; return $ this ; }
Sets "to" value property name, which contains the "to" value.

@param string $toValuePropertyName

@return static
@throws InvalidArgumentException On invalid argument
Sets to value property name which contains the to value .