Example #1
0
 /**
  * @param $rm
  * @param $graph
  */
 public function __construct(Query $query)
 {
     $this->rm = $query->getRm();
     $this->graph = $query->getResult();
     if (!$this->graph instanceof Graph) {
         throw new UnexpectedTypeException('Attempting a EasyRdf\\Graph', $this->graph);
     }
     if (!$this->rm instanceof Manager) {
         throw new UnexpectedTypeException('Attempting a Conjecto\\Nemrod\\Manager', $this->rm);
     }
 }