Beispiel #1
0
 /**
  * @param MongoClientInterface $client
  * @param string $databaseName
  * @param string $collection
  */
 public function __construct(MongoClientInterface $client, $databaseName = 'xhprof', $collection = 'results')
 {
     parent::__construct();
     $this->client = $client;
     $this->database = $this->client->{$databaseName};
     $this->collection = $this->database->{$collection};
 }
Beispiel #2
0
 /**
  * @param FilesystemInterface $filesystem
  * @param string $path      OPTIONAL The path from the root given in the filesystem
  * @param string $extension OPTIONAL The extension of the profile files
  */
 public function __construct(FilesystemInterface $filesystem, $path = '/', $extension = 'profile')
 {
     parent::__construct();
     $this->filesystem = $filesystem;
     $this->path = $path;
     $this->extension = $extension;
 }
Beispiel #3
0
 /**
  * @param ZendDbAdapterInterface $adapter
  */
 public function __construct(ZendDbAdapterInterface $adapter)
 {
     parent::__construct();
     $this->sql = new Sql($adapter);
 }