Class: PhpCop::Cop::CCPM::Constants

Inherits:
PhpCop::Cop::Cop show all
Defined in:
lib/phpcop/cop/ccpm/constants.rb

Overview

Test constant in php class

Constant Summary collapse

MSG_ALERT_DESCRIB =
'Class constants MUST be declared in all upper '\
'case with underscore separators.'

Constants inherited from PhpCop::Cop::Cop

PhpCop::Cop::Cop::MSG_ALERT_FILE

Instance Attribute Summary

Attributes inherited from PhpCop::Cop::Cop

#errors

Instance Method Summary collapse

Constructor Details

#initialize(file, path, line, line_number) ⇒ Constants

Returns a new instance of Constants.



13
14
15
16
# File 'lib/phpcop/cop/ccpm/constants.rb', line 13

def initialize(file, path, line, line_number)
  super(file, path, line, line_number)
  test_line
end