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

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

        $this->fromValuePropertyName = $fromValuePropertyName;

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

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

        $this->fromValuePropertyName = $fromValuePropertyName;

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

@param string $fromValuePropertyName

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