public function convert($value)
    {
        if (! is_object($value)) return $value;

        return $this->formatter($value)->format($value);
    }
public function convert($value)
    {
        if (! is_object($value)) return $value;

        return $this->formatter($value)->format($value);
    }
public function convert ( $ value ) { if ( ! is_object ( $ value ) ) return $ value ; return $ this -> formatter ( $ value ) -> format ( $ value ) ; }
Convert a value using to the appropriate format

@param mixed $value
@return mixed
Convert a value using to the appropriate format