public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) { if ($this->methodNameStartsWithSet($phpcsFile->getDeclarationName($stackPtr))) { $phpcsFile->addError(self::SETTER_WARNING, $stackPtr); } }