/** * @return bool */ public function isDocumented() { if ($this->isDocumented === NULL && parent::isDocumented() && $this->reflection->getDeclaringClassName() === NULL) { $fileName = $this->reflection->getFilename(); $skipDocPath = $this->configuration->getOption(CO::SKIP_DOC_PATH); foreach ($skipDocPath as $mask) { if (fnmatch($mask, $fileName, FNM_NOESCAPE)) { $this->isDocumented = FALSE; break; } } } return $this->isDocumented; }
/** * Returns if the class should be documented. * * @return boolean */ public function isDocumented() { if (null === $this->isDocumented && parent::isDocumented()) { $fileName = self::$generator->unPharPath($this->reflection->getFilename()); foreach (self::$config->skipDocPath as $mask) { if (fnmatch($mask, $fileName, FNM_NOESCAPE)) { $this->isDocumented = false; break; } } if (true === $this->isDocumented) { foreach (self::$config->skipDocPrefix as $prefix) { if (0 === strpos($this->reflection->getName(), $prefix)) { $this->isDocumented = false; break; } } } } return $this->isDocumented; }