private function pairSetAdd($a, $b) { $a = $this->toObj($a); $b = $this->toObj($b); $set = isset($this->data[$a]) ? $this->data[$a] : null; if (!isset($set)) { $set = new \SplObjectStorage(); $this->data[$a] = $set; } $set[$b] = true; }