public static function count() { return MongoQueue::count(get_called_class()); }
public function __call($method, $args) { MongoQueue::push($this->className, $method, $args, $this->when, $this->batch); }
protected static function initializeEnvironment() { if (self::$environment && !self::$environmentLoaded) { $environment = self::$environment; spl_autoload_register( function ($className) use ($environment) { require_once($environment . '/' . $className . '.php'); } ); self::$environmentLoaded = true; } }