コード例 #1
0
 /**
  * @since 1.8
  *
  * @param  Store $baseStore
  */
 public function __construct(Store $baseStore = null)
 {
     $this->factory = new SPARQLStoreFactory($this);
     $this->baseStore = $baseStore;
     if ($this->baseStore === null) {
         $this->baseStore = $this->factory->newBaseStore(self::$baseStoreClass);
     }
 }
コード例 #2
0
 public function testCanConstructBaseStore()
 {
     $instance = new SPARQLStoreFactory($this->store);
     $this->assertInstanceOf('\\SMWSQLStore3', $instance->newBaseStore('SMWSQLStore3'));
 }