private static function createFromEndpoints($endpoint1, $endpoint2)
	    {
	        $start = self::validateDateTime($endpoint1);
	        $end   = self::validateDateTime($endpoint2);
	        
	        if ($start > $end) {
	            return new self($end, $start);
	        }

	        return new self($start, $end);
	    }