public function getSerializationType()
    {
        switch ($this->association) {
            case self::ASSOCIATION_TYPE_EMBED_ONE:
            case self::ASSOCIATION_TYPE_EMBED_MANY:
                return TypeFactory::getType(Type::MAP);
            case self::ASSOCIATION_TYPE_REFERENCE_ONE:
            case self::ASSOCIATION_TYPE_REFERENCE_MANY:
                return $this->getReferenceSerializationType();
        }

        throw new \BadMethodCallException;
    }
public function getSerializationType()
    {
        switch ($this->association) {
            case self::ASSOCIATION_TYPE_EMBED_ONE:
            case self::ASSOCIATION_TYPE_EMBED_MANY:
                return TypeFactory::getType(Type::MAP);
            case self::ASSOCIATION_TYPE_REFERENCE_ONE:
            case self::ASSOCIATION_TYPE_REFERENCE_MANY:
                return $this->getReferenceSerializationType();
        }

        throw new \BadMethodCallException;
    }
public function getSerializationType ( ) { switch ( $ this -> association ) { case self :: ASSOCIATION_TYPE_EMBED_ONE : case self :: ASSOCIATION_TYPE_EMBED_MANY : return TypeFactory :: getType ( Type :: MAP ) ; case self :: ASSOCIATION_TYPE_REFERENCE_ONE : case self :: ASSOCIATION_TYPE_REFERENCE_MANY : return $ this -> getReferenceSerializationType ( ) ; } throw new \ BadMethodCallException ; }
Return the Type used to serialize individual association values.

@return Type
Return the Type used to serialize individual association values .