_classReader = $classReader ?: new \Magento\Framework\Code\Reader\ClassReader(); } /** * Check whether requested type is available for read * * @param string $type * @return bool */ public function has($type) { return class_exists($type) || interface_exists($type); } /** * Retrieve list of parents * * @param string $type * @return array */ public function getParents($type) { if (!class_exists($type)) { return $this->_default; } return $this->_classReader->getParents($type) ?: $this->_default; } }