public function stop($type = self::STATUS_SUCCESS) {
		if ($this->_started === false) {
			throw new Exception('Unable to stop the event which has not been started');
		}
		
		if ($this->_ended === true) {
			throw new Exception('The event already been stopped');
		}
		
		$this->_stopTime   = microtime(true);
		$this->_stopMemory = memory_get_usage();
		$this->_status     = $type;
		$this->_stoped = true;
	}
public function stop($type = self::STATUS_SUCCESS) {
		if ($this->_started === false) {
			throw new Exception('Unable to stop the event which has not been started');
		}
		
		if ($this->_ended === true) {
			throw new Exception('The event already been stopped');
		}
		
		$this->_stopTime   = microtime(true);
		$this->_stopMemory = memory_get_usage();
		$this->_status     = $type;
		$this->_stoped = true;
	}
public function stop ( $ type = self :: STATUS_SUCCESS ) { if ( $ this -> _started === false ) { throw new Exception ( 'Unable to stop the event which has not been started' ) ; } if ( $ this -> _ended === true ) { throw new Exception ( 'The event already been stopped' ) ; } $ this -> _stopTime = microtime ( true ) ; $ this -> _stopMemory = memory_get_usage ( ) ; $ this -> _status = $ type ; $ this -> _stoped = true ; }
Stop the event
Stop the event