public function allOfType($type) { return array_filter($this->adapters, function ($adapter) use($type) { return $adapter[$type]; }); }