self::$dice = $dice;
}
+ /**
+ * Returns a clone of the current dice instance
+ * This usefull for overloading the current instance with mocked methods during tests
+ *
+ * @return Dice
+ */
+ public static function getDice()
+ {
+ return clone self::$dice;
+ }
+
//
// common instances
//
return self::$dice->create(Content\Item::class);
}
+ /**
+ * @return Content\Conversation
+ */
+ public static function conversation()
+ {
+ return self::$dice->create(Content\Conversation::class);
+ }
+
/**
* @return Content\Text\BBCode\Video
*/
/**
* @return Network\IHTTPClient
*/
- public static function httpRequest()
+ public static function httpClient()
{
return self::$dice->create(Network\IHTTPClient::class);
}