public function getValueMap($valueObject)
    {
        if (!is_string($valueObject)) {
            $valueObject = get_class($valueObject);
        }

        if (!array_key_exists($valueObject, $this->valueClasses)) {
            $this->registerValueObject($valueObject);
        }

        /** @var ValueMap $valueMap */
        $valueMap = new $this->valueClasses[$valueObject]();

        $valueMap->setClass($valueObject);

        return $valueMap;
    }
public function getValueMap($valueObject)
    {
        if (!is_string($valueObject)) {
            $valueObject = get_class($valueObject);
        }

        if (!array_key_exists($valueObject, $this->valueClasses)) {
            $this->registerValueObject($valueObject);
        }

        /** @var ValueMap $valueMap */
        $valueMap = new $this->valueClasses[$valueObject]();

        $valueMap->setClass($valueObject);

        return $valueMap;
    }
public function getValueMap ( $ valueObject ) { if ( ! is_string ( $ valueObject ) ) { $ valueObject = get_class ( $ valueObject ) ; } if ( ! array_key_exists ( $ valueObject , $ this -> valueClasses ) ) { $ this -> registerValueObject ( $ valueObject ) ; } /** @var ValueMap $valueMap */ $ valueMap = new $ this -> valueClasses [ $ valueObject ] ( ) ; $ valueMap -> setClass ( $ valueObject ) ; return $ valueMap ; }
Get the Value Map for a given Value Object Class.

@param string $valueObject

@throws MappingException

@return \Analogue\ORM\ValueMap
Get the Value Map for a given Value Object Class .