ObjectCalisthenics\Sniffs\NamingConventions\NoSetterSniff::process PHP Method

process() public method

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