src/Alg/Time/DurationPhraseRanges.php
public function addRange( $from, $label )
	{
		$from	= preg_replace_callback( $this->regExp, array( $this, 'calculateSeconds' ), $from );
		$this->ranges[(int) $from]	= $label;
		ksort( $this->ranges );
	}
public function addRange( $from, $label )
	{
		$from	= preg_replace_callback( $this->regExp, array( $this, 'calculateSeconds' ), $from );
		$this->ranges[(int) $from]	= $label;
		ksort( $this->ranges );
	}
public function addRange ( $ from , $ label ) { $ from = preg_replace_callback ( $ this -> regExp , array ( $ this , 'calculateSeconds' ) , $ from ) ; $ this -> ranges [ ( int ) $ from ] = $ label ; ksort ( $ this -> ranges ) ; }
Adds a Range.
@access		public
@param		string		$from		Start of Range, eg. 0
@param		string		$label		Range Label, eg. "{s} seconds"
@return		void
Adds a Range .