src/Deprecation.php
public function message( $message ){
		$trace	= debug_backtrace();
		$caller = next( $trace );
		$message .= ', invoked in '.$caller['file'].' on line '.$caller['line'];
		if( $this->exceptionVersion )
			if( version_compare( $this->version, $this->exceptionVersion ) >= 0 )
				throw new Exception( 'Deprecated: '.$message );
		if( version_compare( $this->version, $this->errorVersion ) >= 0 ){
			self::notify( $message );
		}
	}
public function message( $message ){
		$trace	= debug_backtrace();
		$caller = next( $trace );
		$message .= ', invoked in '.$caller['file'].' on line '.$caller['line'];
		if( $this->exceptionVersion )
			if( version_compare( $this->version, $this->exceptionVersion ) >= 0 )
				throw new Exception( 'Deprecated: '.$message );
		if( version_compare( $this->version, $this->errorVersion ) >= 0 ){
			self::notify( $message );
		}
	}
public function message ( $ message ) { $ trace = debug_backtrace ( ) ; $ caller = next ( $ trace ) ; $ message .= ', invoked in ' . $ caller [ 'file' ] . ' on line ' . $ caller [ 'line' ] ; if ( $ this -> exceptionVersion ) if ( version_compare ( $ this -> version , $ this -> exceptionVersion ) >= 0 ) throw new Exception ( 'Deprecated: ' . $ message ) ; if ( version_compare ( $ this -> version , $ this -> errorVersion ) >= 0 ) { self :: notify ( $ message ) ; } }
Show message as exception or deprecation error, depending on set versions and PHP version.
Will throw an exception if set exception version reached detected library version.
Will throw a deprecation error if set error version reached detected library version using PHP 5.3+.
Will throw a deprecation notice if set error version reached detected library version using PHP lower 5.3.
@access		public
@param		string		$version	Library version to start showing deprecation error or notice
@return		void
@throws		Exception				if set exception version reached detected library version
Show message as exception or deprecation error depending on set versions and PHP version . Will throw an exception if set exception version reached detected library version . Will throw a deprecation error if set error version reached detected library version using PHP 5 . 3 + . Will throw a deprecation notice if set error version reached detected library version using PHP lower 5 . 3 .