public function isDeprecated() { if ($this->reflection->isDeprecated()) { return true; } if ($this instanceof InClassInterface) { $class = $this->getDeclaringClass(); return !is_null($class) && $class->isDeprecated(); } return false; }