public function getFieldFor($type) { if (!isset($this->typemap[$type])) { return false; } $class = $this->typemap[$type]; return $this->get($class, ['type' => $type]); }