/** * Take a different copy of our desired object, post-creation. * @param HTTP_OAuth_Consumer_Request $object **/ public function wrap($object) { if ($object instanceof HTTP_OAuth_Consumer) { $this->instance = $object->getOAuthConsumerRequest(); } elseif ($object instanceof HTTP_OAuth_Consumer_Request) { $this->instance = $object; } else { throw new Imgur_Exception("HTTPOAuthConsumer::wrap was not passed an object that could be worked with."); } }