class = $class; $this->namespace = $source->getNamespace(); $this->aliased_classes = $source->getAliasedClasses(); $this->file_name = $source->getFileName(); $this->absolute_class = $absolute_class; $this->parent_class = null; $this->suppressed_issues = $source->getSuppressedIssues(); self::$class_checkers[$absolute_class] = $this; } public function check($check_methods = true, Context $class_context = null) { if (!$class_context) { throw new \InvalidArgumentException('TraitChecker::check must be called with a $class_context'); } parent::check($check_methods, $class_context); } }