private function getIndexOf($segment){
		if($segment instanceof Segment){
			foreach($this->segments as $index=>$other){
				if($other === $segment){
					return $index;
				}
			}
		}else{
			foreach($this->segments as $index=>$other){
				if($other->getName() === $segment){
					return $index;
				}
			}
		}
		return false;
	}
private function getIndexOf($segment){
		if($segment instanceof Segment){
			foreach($this->segments as $index=>$other){
				if($other === $segment){
					return $index;
				}
			}
		}else{
			foreach($this->segments as $index=>$other){
				if($other->getName() === $segment){
					return $index;
				}
			}
		}
		return false;
	}
private function getIndexOf ( $ segment ) { if ( $ segment instanceof Segment ) { foreach ( $ this -> segments as $ index => $ other ) { if ( $ other === $ segment ) { return $ index ; } } } else { foreach ( $ this -> segments as $ index => $ other ) { if ( $ other -> getName ( ) === $ segment ) { return $ index ; } } } return false ; }
Returns the index of the segment
@param string|\csslib\Segment $segment
@return \csslib\Segment|boolean
Returns the index of the segment