public function targetSerialize($target = self::SER_DEFAULT, $params = null)
    {
        return $this->format($this->format);
    }
public function targetSerialize($target = self::SER_DEFAULT, $params = null)
    {
        return $this->format($this->format);
    }
public function targetSerialize ( $ target = self :: SER_DEFAULT , $ params = null ) { return $ this -> format ( $ this -> format ) ; }
Serialize object for given target.

@param string $target The serialization target (one of the TSer constants)
@param mixed  $params The additional parameters that serializer might need

@throws \Exception

@return \stdClass|string|array|NULL
Serialize object for given target .