private function _processInterfaceStatement() {
		// Check PHPDoc Presence
		$this->_checkDocExists(T_INTERFACE);

		$this->_ncssTotalInterfaces ++;
		$this->_ncssFileInterfaces ++;

		// Test if there is more than one class per file
		if ($this->_isActive('oneInterfacePerFile') && $this->_ncssFileInterfaces > 1) {
			$msg = $this->_getMessage('ONE_INTERFACE_PER_FILE', $this->_currentFilename);
			$this->_writeError('oneInterfacePerFile', $msg);
		}

		// Reset the default values
		$this->_inFunction = false;
		$this->_nbFunctionParameters = 0;
		$this->_functionParameters = array();
		$this->_inFunctionStatement = false;
		$this->_functionReturns = false;
		$this->_functionThrows = false;
		$this->_inControlStatement = false;
		$this->_currentStatement = false;
		$this->_inInterfaceStatement = true;

		// skip until T_STRING representing the interface name
		while (!$this->tokenizer->checkCurrentToken(T_STRING)) {
			$this->tokenizer->getNextToken();
		}

		$token = $this->tokenizer->getCurrentToken();
		$interfacename = $token->text;
		$this->_currentInterfacename = $interfacename;

		// Test that the interface name matches the file name
		$this->_checkTypeNameFileNameMatch($interfacename);

		// Check interface naming
		$this->_checkInterfaceNaming($interfacename);

		$this->_checkWhiteSpaceAfter($interfacename);
	}
private function _processInterfaceStatement() {
		// Check PHPDoc Presence
		$this->_checkDocExists(T_INTERFACE);

		$this->_ncssTotalInterfaces ++;
		$this->_ncssFileInterfaces ++;

		// Test if there is more than one class per file
		if ($this->_isActive('oneInterfacePerFile') && $this->_ncssFileInterfaces > 1) {
			$msg = $this->_getMessage('ONE_INTERFACE_PER_FILE', $this->_currentFilename);
			$this->_writeError('oneInterfacePerFile', $msg);
		}

		// Reset the default values
		$this->_inFunction = false;
		$this->_nbFunctionParameters = 0;
		$this->_functionParameters = array();
		$this->_inFunctionStatement = false;
		$this->_functionReturns = false;
		$this->_functionThrows = false;
		$this->_inControlStatement = false;
		$this->_currentStatement = false;
		$this->_inInterfaceStatement = true;

		// skip until T_STRING representing the interface name
		while (!$this->tokenizer->checkCurrentToken(T_STRING)) {
			$this->tokenizer->getNextToken();
		}

		$token = $this->tokenizer->getCurrentToken();
		$interfacename = $token->text;
		$this->_currentInterfacename = $interfacename;

		// Test that the interface name matches the file name
		$this->_checkTypeNameFileNameMatch($interfacename);

		// Check interface naming
		$this->_checkInterfaceNaming($interfacename);

		$this->_checkWhiteSpaceAfter($interfacename);
	}
private function _processInterfaceStatement ( ) { // Check PHPDoc Presence $ this -> _checkDocExists ( T_INTERFACE ) ; $ this -> _ncssTotalInterfaces ++ ; $ this -> _ncssFileInterfaces ++ ; // Test if there is more than one class per file if ( $ this -> _isActive ( 'oneInterfacePerFile' ) && $ this -> _ncssFileInterfaces > 1 ) { $ msg = $ this -> _getMessage ( 'ONE_INTERFACE_PER_FILE' , $ this -> _currentFilename ) ; $ this -> _writeError ( 'oneInterfacePerFile' , $ msg ) ; } // Reset the default values $ this -> _inFunction = false ; $ this -> _nbFunctionParameters = 0 ; $ this -> _functionParameters = array ( ) ; $ this -> _inFunctionStatement = false ; $ this -> _functionReturns = false ; $ this -> _functionThrows = false ; $ this -> _inControlStatement = false ; $ this -> _currentStatement = false ; $ this -> _inInterfaceStatement = true ; // skip until T_STRING representing the interface name while ( ! $ this -> tokenizer -> checkCurrentToken ( T_STRING ) ) { $ this -> tokenizer -> getNextToken ( ) ; } $ token = $ this -> tokenizer -> getCurrentToken ( ) ; $ interfacename = $ token -> text ; $ this -> _currentInterfacename = $ interfacename ; // Test that the interface name matches the file name $ this -> _checkTypeNameFileNameMatch ( $ interfacename ) ; // Check interface naming $ this -> _checkInterfaceNaming ( $ interfacename ) ; $ this -> _checkWhiteSpaceAfter ( $ interfacename ) ; }
Process an interface declaration statement.
Process an interface declaration statement .